Hello Folks,
Am having trouble in pulling the shared variables from the subreport to the main report and suppress the main report records based on the shared variable.
I have the main report with Report Header suppressed,Page Header Suppressed.Detail section shows field called code.
Report Footera has the subreport1
and ReportFooterb has the subreport2
Subreport1 has everything suppressed except details. And i have the shared variable placed in the reportheader suppressed and it is
@shared1 is
whileprintingrecords;
Shared Stringvar subroline;
subroline :=
{@Substring2};
subreport2 has the same thing but i have different variable name
@shared2 is
whileprintingrecords;
Shared Stringvar subro;
subro :=
{@Substring2};
So finally am bringing in the two shared variables into the main report
as
@sharedmain1 is
whileprintingrecords;
Shared Stringvar subroline;
@sharedmain2 is
whileprintingrecords;
Shared Stringvar subro;
and i have placed them in the main report page header and suppressed them
Ultimately Under suppress of
Detail section of the main report has the condition if @sharedmain1 = left(code,21) then True Else False.
But for somereason i still see the records that are supposed to be suppressed. I dont know wat am missing. Any help?
Edited by Nav522 - 31 Jan 2011 at 8:38am