Home End User

RAP pass-through function

edited October 2002 in End User
I created a RAP pass-through function, but I need to access a TReport
Pipeline property, how can do this ?

I saw nothing in the demo report.

Thank you !
--
Philippe Constant
CTRL/Informatique
350 Rue Franquet, bureau 50
Ste-Foy, Qc
G1P 4P3

Comments

  • edited October 2002
    You'll need to pass the datapipeline as a parameter in the pass through
    function. This way you don't have to put the pass through function in the
    same unit as the report object. If it were, then you could hack around it
    by referencing the form's report object's datapipeline propery, but that
    would not be as portable as simply passing the handle to the pipeline from
    RAP in the pass thrugh function explicitly.

    In the ExecuteFunction you can reference the aParams parameter and get the
    different parameters and type cast them:

    lPipeline := TppDBPipeline(aParams[0]);

    You can override HasParams of the pass through function to return true. See
    myRapClass.pas file in the RAP tutorials section for an example.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.