Skip to Content
0
Jan 25, 2021 at 03:13 AM

Shared Variables between sub report

71 Views

Hi,

I have tried sharing variables between main and subreports, I am getting a result but its a bit hit and miss.

Sub reported is located in main report section Da
Db is other data and the shared variable

Shared dateVar QO;
QO;

In subreport
Report header has @Variable

Shared dateVar QO := Date({field_DtTm}); 

also the field_DtTm
Details section also the field_DtTm
I have all this suppressed.

The data is getting pulled but if one line, for example, has the data then next line might not have the data that figure is pulled to line 2 etc… I need to see if the location of the shared variables is correct and need to account for null or blank values.

Thanks