I need to pass values from unlinked subreport to the main report. I have created a shared variable in my subreport using my summary field. See the code below:
whileprintingrecords;
shared currencyvar v_jul_comm_amt := sum ({@Jul_Comm_Amt})
and then I have used below formula Colum code in main report.
whileprintingrecords;
shared currencyvar v_jul_comm_amt
but the main report is displaying zero. I am not sure what is wrong in the main report code.
I tested in subreport to see if it is populating jul_comm_amt, it is working.
Is there something wrong in calling shared variable in main report?
Note: sub report is not unlinked. Is that an issue to use shared variables between sub and main report.
Any quick response would be appreciated
-NB
whileprintingrecords;
shared currencyvar v_jul_comm_amt := sum ({@Jul_Comm_Amt})
and then I have used below formula Colum code in main report.
whileprintingrecords;
shared currencyvar v_jul_comm_amt
but the main report is displaying zero. I am not sure what is wrong in the main report code.
I tested in subreport to see if it is populating jul_comm_amt, it is working.
Is there something wrong in calling shared variable in main report?
Note: sub report is not unlinked. Is that an issue to use shared variables between sub and main report.
Any quick response would be appreciated
-NB