Home Datapipelines
New Blog Posts: Merging Reports - Part 1 and Part 2

How to determine report of Datapipeline

edited October 2009 in Datapipelines
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

Comments

  • edited October 2009
    Hi Bas,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2009

    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
This discussion has been closed.