How to determine report of Datapipeline
hi,
I have a self-made pipeline derived from TppDBPipeline.
How can i determine the report object that is using the pipeline from within
the pipeline code?
greeting
Bas Schouten
I have a self-made pipeline derived from TppDBPipeline.
How can i determine the report object that is using the pipeline from within
the pipeline code?
greeting
Bas Schouten
This discussion has been closed.
Comments
By design, the datapipelines do not have any knowledge of which report
connects to them. One option would be to loop through each report object in
the project and check the DataPipeline field against a given pipeline.
Another would be to try to add some logic to your descendent to keep track
of the report being connected. You will need to be aware that this option
may cause circular reference issues.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
A Report or data-aware component such as a DBText can be attached to a
datapipeline. In fact many reports and objects can connect to the same
datapipeline, there is no limit.
The DataPipeline should not know about objects attached to it. In Delphi
DataSets do not know about controls that attached to them either. This is a
fundamental design principle.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com