Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
eliminate orphaned header on 2nd pg of pdf
sandym
I want to block production of a header on the second page of a pdf, by setting a variable, earlier in the object hierarchy.
After all the polines have been produced and totaled, I want to assign the value, 'polinesdone' to a variable. Before production of the section header on the second page, I want to check the value of the variable for 'polinesdone'. If so, then I'll block the production of the header.
How do I go about doing this?
Find more posts tagged with
Comments
Virgil Dodson
Hi sandym,
Can you use 2 tables? One filtered for the data where you want the headers to repeat with Repeat Header checked on the table page break properties... and one filtered to show the rest of the data with Repeat Header unchecked. Otherwise, can you give more details about what you are trying to do and explain what polines are?
I'm moving this post to the Designing BIRT Report forum
sandym
Let me restate the problem. I've refined it to where I can return an incremented variable from page to page, but the visibility property of an object doesn't recognize the value of the variable. Stated another way, I want to hide a header on the second page. I'm trying to use the visibility property of the object to do this.
prakash_p
have a script like below on <strong class='bbc'>onRender</strong> event of the element that u want to hide - <br />
<br />
if([variable-value]){<br />
this.getStyle().display ="none"<br />
}
sandym
Thanks for the code snippet, but it doesn't work. If the condition is met, it eliminates the header on both pages: I used both methods of coding and got same result.
if(hldval==1){
this.getStyle().display ="none"
}
if(reportContext.getGlobalVariable("prevUserId")==1){
this.getStyle().display ="none"
}
Virgil Dodson
Hi sandym,
The table headers are produced only once at the start of the table creation and then just reused throughout the processing so you cannot change the visibility of a header part way through a table. Did my 2 table suggestion using filters make sense? Also since you have a logical break in data, try grouping your table by that field... and then use group headers instead of the table header.