Accessing Dataset Through RAP
What is the syntax I could use to reference the dataset of a data pipeline?
I have a function in Delphi declared something like:
function Calc(var Dataset: TDataset);
I know how to create a passthrough function, but I'm not sure how to use the
function in RAP (the syntax to reference the dataset of the pipeline).
e.g., In a Variable's OnCalc: Value := Calc(MyPipeline); ??
Basically there are a lot of variables from the dataset being used in the
calcuation, and rather than passing them through individually, I want to
pass the entire dataset reference.
I have a function in Delphi declared something like:
function Calc(var Dataset: TDataset);
I know how to create a passthrough function, but I'm not sure how to use the
function in RAP (the syntax to reference the dataset of the pipeline).
e.g., In a Variable's OnCalc: Value := Calc(MyPipeline); ??
Basically there are a lot of variables from the dataset being used in the
calcuation, and rather than passing them through individually, I want to
pass the entire dataset reference.
This discussion has been closed.
Comments
My recommendation would be to pass the entire pipeline (Report.DataPipeline)
to the pass-thru function and access the TDataset from there. This way you
can typecast the pipeline object as a TppDBPipeline and access its
DataSource.DataSet property before calling your Calc routine.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com