Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all articles
Browse latest Browse all 2239

Calling a report from another - Setting variables

$
0
0
Hi

I'm calling a report from another. The report I'm calling has a request form, wich I set as unable in the RUN command. But I need to set some variables to filter a table, etc.

Lets say report A calls report B.

In report B, I set a variable X in C/AL Globals. Then, I define a function InitX(value) wich does:
InitX( Value : Text[30])
X:= Value;

I use the InitX function from my report A:
txtFilter := '010119..310119';
R50042.InitX(txtFilter);
// And I see X with his proper value
REPORT.RUN(50042,FALSE,FALSE);

Then, in my table's event OnPreDataItem I want to filter it using X:
"Cust. Ledger Entry".SETFILTER("Posting Date",X);

And X is empty :(

How can I set a variable from the outside, and use it later in the report?

Thanks



Viewing all articles
Browse latest Browse all 2239

Trending Articles