Consultor Eletrônico



Kbase P13572: RB: how to pass multiple date variables in report engine RB-
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/10/2003
Status: Verified

GOAL:

How to pass multiple date variables in report engine RB-OTHER-PARAMETERS.

GOAL:

Report Builder.

FIX:

Here is an example of how to include multiple data variables in the RB-OTHER-PARAMETERS parameter of the Report Engine.

Each variable must be separated by a line-feed character, either ~n or the ASCII equivalent CHR(10).  
The entire expression is concatenated together as a single string.

RB-OTHER-PARAMETERS would read as follows:


"RunTimeA = " + string(valueA) + "~n RunTimeB = " + string(valueB)


In order to use this calculated field in Report Builder use RUNTIME-PARAMETER function in a Calculated Field.

NUMERIC(RUNTIME-PARAMETER("RunTimeA") + NUMERIC(RUNTIME-PARAMETER("RunTimeB")

Note that when you use numeric field a numeric cast is needed as the RUNTIME-PARAMETER is always a char type.