I have setup a shared stringvar formula in a subreport:
WhilePrintingRecords;
shared stringVar Pension;
if isnull ({@Pension}) then "N" else
Pension := {@Pension}
The @Pension formula above is:
if {BENEFITS.ST_DATE}< date (2012,04,01) and
{BENEFITS.START_CD} = "Y" then "Y" else "N"
When the subreport is inserted into the main report it is linked by the employee number and then placed in the details line. It displays the correct information “Y” if the employee is in the pension, “N” if the employee is not or if there is no value/Null.
When I do the following formula in the main report to display the shared stringvar I get the first record blank and all the rest “Y”. What should I be doing to get the shared stringvar to display on the detail line of the main report correctly?
WhilePrintingRecords;
shared StringVar Pension
I need the Shared Variable to be able to use the result in main report formulas such as:
if {EMP_JOB.GROUPCD} = "ONAP" and {@Stringvar Pension} = "Y" then .13 else
if {EMP_JOB.GROUPCD} = "ONAP" and {@Stringvar Pension} = "N" then .09
Your assistance is greatly appreciated.
WhilePrintingRecords;
shared stringVar Pension;
if isnull ({@Pension}) then "N" else
Pension := {@Pension}
The @Pension formula above is:
if {BENEFITS.ST_DATE}< date (2012,04,01) and
{BENEFITS.START_CD} = "Y" then "Y" else "N"
When the subreport is inserted into the main report it is linked by the employee number and then placed in the details line. It displays the correct information “Y” if the employee is in the pension, “N” if the employee is not or if there is no value/Null.
When I do the following formula in the main report to display the shared stringvar I get the first record blank and all the rest “Y”. What should I be doing to get the shared stringvar to display on the detail line of the main report correctly?
WhilePrintingRecords;
shared StringVar Pension
I need the Shared Variable to be able to use the result in main report formulas such as:
if {EMP_JOB.GROUPCD} = "ONAP" and {@Stringvar Pension} = "Y" then .13 else
if {EMP_JOB.GROUPCD} = "ONAP" and {@Stringvar Pension} = "N" then .09
Your assistance is greatly appreciated.