Passing a Parameter to Batch and Standalone Reports

When you initiate Reports using RIP, or Standalone Reports using WFL, you can pass parameter information by using the TASKSTRING option, as follows:

TASKSTRING="literal"

The string literal can be up to 254 characters. The total length of file equates plus the report parameter must not exceed 2010 characters.

In order for your Report to be able to receive the parameter, you must add an attribute for the report to receive parameter data prior to generating the Report. Refer to the Agile Business Suite Developer User Guide for more information.

The TASKSTRING option is equivalent to the PA parameter option when initiating a Report using the :RUN Administration command. Refer to :RUN Commands.

Examples

Using RIP:

RUN $NGEN28/RIP ("MYSYS/REPORT1"); FILE PRINT(COPIES=5); TASKSTRING="ABCDEF123456";
FILE A (TITLE=MYOUTPUT);

Using WFL:

RUN $MYSYS/REPORT1;TASKSTRING="ABCDEF123456";

Returning a Parameter from a Batch or Standalone Report

When Standalone or NGENxx/RIP Reports are initiated using WFL, the parameter information returned by the report might be interrogated. Parameter information returned by a report is assigned to the TASKSTRING attribute. The parameter might be up to 254 characters. The value of the TASKSTRING might be assigned to a variable in the WFL running the standalone report or NGENxx/RIP.

In order for your Report to be able to return the parameter, you must add an attribute for the report to receive parameter data prior to generating the Report. Refer to the Agile Business Suite Developer User Guide for more information.

Examples

T1(TASKSTRING="MY PARAM");
RUN #REPNAME [T1];
SPARAM := T1(TASKSTRING);

T1(TASKSTRING="MY PARAM");
            RUN (ABS)NGENxx/RIP("MYSYSTEM/REPORT")[T1];
                  SPARAM := T1(TASKSTRING);