1
votes

My report goes:

  • report header suppressed
  • page header a (contains subreport1 which sets the shared variable showsection to "0" or "1").
  • page header b suppressed if showsection is 0.
  • page header c suppressed if showsection is 0.
  • group header 1 always suppressed.
  • details suppressed if showsection is 0.
  • group footer 1 suppressed if showsection is 0.
  • all other sections suppressed.

    The problem is that if showsection is "1" the page headers are showing as designed but the details and the group footer are not showing. I simplified what the subreport is doing for testing and manually change the value to 0 or 1 depending on how I want the test to appear.

    Here is my code in the subreport:

    whileprintingrecords;
    shared numbervar showsection;
    showsection := 1
    

    Here is the suppression formula I am using for the page header, group, and detail sections:

    whileprintingrecords;
    shared numbervar showsection;
    showsection =0
    
  • 2
    when showsection is set to "0" everything is suppressed - user3380538

    2 Answers

    0
    votes

    Not sure why this matters but when I suppressed the group header this caused the Detail and group footer section suppression formula to evaluate as true. In the section expert I unchecked the Suppression box and instead marked the suppress blank section box instead.

    -1
    votes

    change supression formula like this.

    whileprintingrecords;
    shared numbervar showsection;
    if showsection =0
    then true
    else false