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

Opening and CLOSING (!) datasets in rap

edited August 2006 in DADE
Hello,

I found out I can easily open the pipelines when I need them (even with the
pipeline.OpenDatasource:=True property).

How can I close them, though?

For example I might want to refresh a query each time I run the report, but
since the query stays open it only works the very first time (see, I want
the REPORT to open and close the pipelines, I don't want to do it in the
delphi code).

I tried Pipeline.Datasource.dataset.open/close, but it doesn't work. I
recall that in order to use a certain class it needed to be somehow
published, to let rap know about it. May this be the problem? Should I
"publish" tdataset? How was that done?

Best regards,

Dimitar Selenski

Comments

  • edited August 2006
    Hi Dimitar,

    If you would like to manually open and close your datasets from RAP, you
    will need to create a RAP pass thru function. Examples of creating pass
    thru functions can be found in the ReportBuilder Developer's guide located
    in the \RBuilder\Developer's Guide\... directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.