I've been dreading asking for help on this one because this report is so lengthy and a lot of it has nothing to do with my question. I'm going to try to give you enough info to answer my question without making you wade through everything.
For the sake of this question, I have 3 page headers:
Header C which we'll call "TS"
Header D which we'll call "JS"
Header E which is blank
I am reporting with data from SQL. I essentially have 3 Headers that are shown based on the value of the template field of my data. There are 4 possible templates that are acceptable for my report to display.
If the template field value is "TS" or "TS_CM" then the "TS" header (Header C) should be displayed at the top of the page.
If the template value is "JS" or "JS_CM" then the "JS" header (Header D) should be displayed.
Lastly, I have 3-4 static pages that are in the report footer.
I got some help a while back with creating the supression statements for the page headers, but somewhere along the line, this formula stopped working for me.
This is what I have configured at the moment:
This is in my Page Header A (which is supressed) and in my Report Footer A.
I have a supression statement in Header C "TS":
I have a supression statement in Header D "JS":
On my report, all the JS page(s) display first, then there's a pagebreak, then if any exist, the TS page(s) show.
I've been trying different things all day and so far I can get the JS and TS sections to display correctly, but then my report footer section shows the TS page header...
OR
I can get the JS section to work right, but the TS and Report Footer sections have NO header (which is what should happen in the Report Footer, but not the JS section).
Basically, I can't figure out a way to supress the JS and TS headers once there are no more records and I've reached the Report Footer section.
Does anyone have any suggestions? Thanks
For the sake of this question, I have 3 page headers:
Header C which we'll call "TS"
Header D which we'll call "JS"
Header E which is blank
I am reporting with data from SQL. I essentially have 3 Headers that are shown based on the value of the template field of my data. There are 4 possible templates that are acceptable for my report to display.
If the template field value is "TS" or "TS_CM" then the "TS" header (Header C) should be displayed at the top of the page.
If the template value is "JS" or "JS_CM" then the "JS" header (Header D) should be displayed.
Lastly, I have 3-4 static pages that are in the report footer.
I got some help a while back with creating the supression statements for the page headers, but somewhere along the line, this formula stopped working for me.
This is what I have configured at the moment:
Code:
//A formula called pageHeader which contains:
whileprintingrecords;
numbervar pageHeader;
if (
{Command.TemplateRef_FullName} = 'TS_CM' OR
{Command.TemplateRef_FullName} = 'TS'
)
AND
( {@nextrecordnull} = TRUE )
then pageHeader :=1
else
if ( {Command.TemplateRef_FullName} = 'JS_CM' OR
{Command.TemplateRef_FullName} = 'JS'
)
then pageHeader :=0;
// Here I've tried multiple formulas to signify that there are no more records, nullisnext, etc. and I can't figure out a formula to put here, but whatever the formula is, it should make pageHeader :=2;
This is in my Page Header A (which is supressed) and in my Report Footer A.
I have a supression statement in Header C "TS":
Code:
{@pageHeader} = 0
OR
{@pageHeader} = 2
I have a supression statement in Header D "JS":
Code:
{@pageHeader} = 1 or {@pageHeader} = 2 or onlastrecord = true;
On my report, all the JS page(s) display first, then there's a pagebreak, then if any exist, the TS page(s) show.
I've been trying different things all day and so far I can get the JS and TS sections to display correctly, but then my report footer section shows the TS page header...
OR
I can get the JS section to work right, but the TS and Report Footer sections have NO header (which is what should happen in the Report Footer, but not the JS section).
Basically, I can't figure out a way to supress the JS and TS headers once there are no more records and I've reached the Report Footer section.
Does anyone have any suggestions? Thanks