From Dataitem return to Request Form?

itspeteritspeter Member Posts: 105
From Request Form, once you click on "Preview" it will proceed to process dataitem.

In the Request form, I need to have a button trigger to "pre-process" Dataitems, after that return to Request Form.

Is it possible? :-k


Regards,

Peter Ng
Regards,
Peter Ng

Comments

  • afarrafarr Member Posts: 287
    I think you could have a "Pre-process" check box on the option tab. If this box is checked, the report would do the pre-processing only and then call the same report again.

    Actually you would need to declare a variable NewReportInstance,
    and create a function SetUp that would the results of your pre-processing (and any options or filters that the user had chosen). In each section:

    OnPreSection
    IF PreProcessing THEN
    SHOWOUTPUT(FALSE);

    Finally, in the OnPostReport trigger:

    IF PreProcessing THEN BEGIN
    NewReportInstance.SetUp;
    NewReportInstance.RUN;
    END;

    I hope this does what you want.
    Alastair
    Alastair Farrugia
Sign In or Register to comment.