In main report I created a shared stringvar which reads like ['1/2005', '22/2005'] and in subreport I wrote following formula to format the detail section-
WhilePrintingRecords;
booleanvar X:= {APTRANSdet.IDINVC} in [shared stringvar invVar];
if X= false then true;
It works but fails when values for {APTRANSdet.IDINVC} are similar. For example the subreport resulted in showing details for '2/2005' and '22/2005'. As one can see the shared stringvar contains only '22/2005'. Hence it should print details of '22/2005' and not '2/2005'.
Can anyone suggest to filter out the record with exact id.
WhilePrintingRecords;
booleanvar X:= {APTRANSdet.IDINVC} in [shared stringvar invVar];
if X= false then true;
It works but fails when values for {APTRANSdet.IDINVC} are similar. For example the subreport resulted in showing details for '2/2005' and '22/2005'. As one can see the shared stringvar contains only '22/2005'. Hence it should print details of '22/2005' and not '2/2005'.
Can anyone suggest to filter out the record with exact id.