How to prevent Datapipeline from sending notifications to linked components on adding new fields
Hello,
I have a report with many visual components linked to a pipeline.
Now, before the Report.Print is called, I add some fields to that
pipeline, which results in calling DoOnDataChange for each field added
inside of TppCustomDataPipeline.AddChild. Therefore, each of the linked
components is being updated as many times, as many fields are added,
since it's a listener of the notification ppopDataChange. It takes a lot
of time!
How can I prevent that datapipeline from sending notifications to linked
components or else how to prevent the components from reacting to the
notification before I actually print the report?
Is there another way beside looping through the linked components and
removing them from the notification list with its finally restoring?
Thanks a lot!
Leo Kaploun
I have a report with many visual components linked to a pipeline.
Now, before the Report.Print is called, I add some fields to that
pipeline, which results in calling DoOnDataChange for each field added
inside of TppCustomDataPipeline.AddChild. Therefore, each of the linked
components is being updated as many times, as many fields are added,
since it's a listener of the notification ppopDataChange. It takes a lot
of time!
How can I prevent that datapipeline from sending notifications to linked
components or else how to prevent the components from reacting to the
notification before I actually print the report?
Is there another way beside looping through the linked components and
removing them from the notification list with its finally restoring?
Thanks a lot!
Leo Kaploun
This discussion has been closed.
Comments
Sorry for the delay, I somehow lost track of your post.
Yes, the easiest way to remove the notification from each component to the
pipeline would be to create a report object loop and "un-link" each
data-aware component. See the article below on creating a quick and easy
report object loop routine.
http://www.digital-metaphors.com:8080/Delphi_Code/Layouts/Report_Object_Loop
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com