Opening a DataPipeline from RAP?
Hi,
I have a report that has two data pipelines.
One pipline queries the transactions table for data.
The other (Recipt) is used solely to get the highest receipt number so I can
pre-set the AutoSearchCriteria for the user.
My following RAP code is in "ReportAfterAutoSearchDialogCreate" and it works
file if I run the report twice. However the first time, the Receipt pipeline
is shut originally so returns zero.
Report.AutoSearchCriteriaByName('Transactions',
'RECEIPT_NUMBER').SearchExpression := Receipt['Receipt Number'];
In short, I need a way via RAP to open the Receipt pipeline, prior to the
above line of code. - Please can you advise on how to do this.
Many thanks in advance.
Steve
I have a report that has two data pipelines.
One pipline queries the transactions table for data.
The other (Recipt) is used solely to get the highest receipt number so I can
pre-set the AutoSearchCriteria for the user.
My following RAP code is in "ReportAfterAutoSearchDialogCreate" and it works
file if I run the report twice. However the first time, the Receipt pipeline
is shut originally so returns zero.
Report.AutoSearchCriteriaByName('Transactions',
'RECEIPT_NUMBER').SearchExpression := Receipt['Receipt Number'];
In short, I need a way via RAP to open the Receipt pipeline, prior to the
above line of code. - Please can you advise on how to do this.
Many thanks in advance.
Steve
This discussion has been closed.
Comments
The Pipeline.Open procedure is not natively available to RAP. You can try
creating a pass-thru function that opens a certain pipeline manually so you
can access a given dataset.
See the RAP demos located in the \Demos\0. RAP\... directory and the
developer's guide on creating RAP pass-thru functions.
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com