Master/Detail ppTextPipeline Problem
I have a report with a Master file that is a TClientDataSet. This is
linked via the masterpipeline and masterfieldlinks properties to a
TppTextPipeline. In the BeforeAutoSearchDialogCreate event, I display a
new filter form for the user to filter by. When I run the report is
works ok the first time. However, if I hit the autosearch button which
then displays my new filter form, and let the user reset the filter,
only one line is showing up in the detail section. The data in the
TppTextPipline ascii file has all of the correct information, so I know
that I am writing the data to the ascii file correctly. Howerver on the
preview form, only the first detail line shows up. To fix this I have
tried creating the fieldlinks as runtime, but that did not work. I am
calling the Report.Reset(0) and Report.ResetFromPage(0) also. Any idea
how I can get this to work?
linked via the masterpipeline and masterfieldlinks properties to a
TppTextPipeline. In the BeforeAutoSearchDialogCreate event, I display a
new filter form for the user to filter by. When I run the report is
works ok the first time. However, if I hit the autosearch button which
then displays my new filter form, and let the user reset the filter,
only one line is showing up in the detail section. The data in the
TppTextPipline ascii file has all of the correct information, so I know
that I am writing the data to the ascii file correctly. Howerver on the
preview form, only the first detail line shows up. To fix this I have
tried creating the fieldlinks as runtime, but that did not work. I am
calling the Report.Reset(0) and Report.ResetFromPage(0) also. Any idea
how I can get this to work?
This discussion has been closed.
Comments
If possible, please send a small example demonstrating this behavior in .zip
format to support@digital-metaphors.com and I'll take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
telling you that. Putting a ppReport.Engine.Reset in right after the
ppReport.REset and ppReport.ResetFromPage(0) seems to fix the problem.
I need to test a little more to make sure. I am not really sure why it
works. If you know, I would be curious. Also, it would be a little
hard to make a small test case, but if I get time, I can try if you want.