Home RAP

Filter TppDBPipeline?s in RAP

edited May 2003 in RAP
Hello,

I have two TppDBPipeline?s:

1) manufactorer
2)article

then I?ve an Master/Detail report, where I?ll show the
articles depending on the manufactorer. The filtering should
happen in the rtm-Template in the onprint of the "article-band".

I made this on the application-site while filtering the Datasets
directly in the delphis code:

ClientDataSet.Filter:= ' xyz = 123;
ClientDataSet.Filtered := True;

...but now I must move this to the RAP-Code...

Can I do such an filtering of in RAP-Code?
Is there anywhere an examle?

Do you have any Idea?

Regards,

Hoffmann, Jan

Comments

  • edited May 2003
    Yes, you can filter from RAP, although you'll have to create a RAP pass
    through function to do this. Use the same event in RAP as you did in Delphi
    which worked, however, you'll have to call a pass through function (pass the
    'xyz = 123' string as the parameter) to set the filter on the CDS in Delphi
    code, since the CDS isn't visible in RAP. There are examples of creating and
    registering RAP pass through functions in the tutorials and RAP help file in
    the installation. See the RAP folder of our demos directory as a place to
    get started.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.