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.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com