Hi, so i have a Form that calls a Report in an OnPush()-Trigger. After the Report is run, i want to pass two Integers back to the Form. Is there any way to do it?
Since apparently all variables are cleared after Report.RUN is executed i cant follow up with get functions in the Report. I also tried it the other way around and put set functions in my form and tried to update the form fields in the OnPostDataItem() of the Report... that doesn't work either ( apparently it's passing the values to a new instance of the form instead of using the one that is currently running.
EDIT: all i had to do was RUNMODAL instead of RUN. I don't know why but apparently the variables don't get cleared this way
0
Answers
You can create codeunit and set it to single instance and create required variables, procedures to set and read variables.
Make modifications in the report to update varaible values in codeunit by calling procedure to set variables in codeunit .
On the form, On OnPush trigger, once after report run, get variables from codeunit.
Reports transformation to RDLC
List -1h , Complex List -3h, Document -4h (dev hours)
navisionupgrade.com