I'm using CR2008 with an Oracle 11g database as my data source. I've been hired to fix some bugs in existing sales compensation reports and I'm having a problem with the Comp Statement report. It has a one group(participantseq)but contains 33 detail sections. The first 11 detail sections are actually headers for various sections of the report, and they are conditionally suppressed depending on if any data exists for that section. Here is an example of the suppression formula:
Global BooleanVar gbSectionFShown;
if ({COMPSTATEMENT.PARTICIPANTSEQ} <> previous({COMPSTATEMENT.PARTICIPANTSEQ})) or {COMPSTATEMENT.POSITIONSEQ} <> previous({COMPSTATEMENT.POSITIONSEQ}) then (
gbSectionFShown := False;
);
if ({COMPSTATEMENT.OBJNAME} = "Current Period Earnings") and gbSectionFShown = False then (
gbSectionFShown := True;
False;
) else (
True;
);
The COMPSTATEMENT.OBJNAME changes for each "header" detail section, otherwise they are the same. My problem is that the "headers" do not appear if the data from that section continues to the next page. Is there any way to alter the suppression formula to also appear if the data for that section continues to the next page??
Global BooleanVar gbSectionFShown;
if ({COMPSTATEMENT.PARTICIPANTSEQ} <> previous({COMPSTATEMENT.PARTICIPANTSEQ})) or {COMPSTATEMENT.POSITIONSEQ} <> previous({COMPSTATEMENT.POSITIONSEQ}) then (
gbSectionFShown := False;
);
if ({COMPSTATEMENT.OBJNAME} = "Current Period Earnings") and gbSectionFShown = False then (
gbSectionFShown := True;
False;
) else (
True;
);
The COMPSTATEMENT.OBJNAME changes for each "header" detail section, otherwise they are the same. My problem is that the "headers" do not appear if the data from that section continues to the next page. Is there any way to alter the suppression formula to also appear if the data for that section continues to the next page??