Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Opening a DataPipeline from RAP?

edited November 2010 in General
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

Comments

  • edited November 2010
    Hi Steve,

    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
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.