Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Repeat Header
ngocvdoan
Hi,
Would you please give me the code to detect Repeated Header?
I have a requirement like this:
If (Repeated Header == True)
then hide specific header row
else
display
Thanks
Steve
Find more posts tagged with
Comments
kclark
You can use this.repeateHeader from the onCreate() of the table<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>if(this.repeatHeader == true) {
reportContext.setPersistentGlobalVariable("test", "true")
}else{
reportContext.setPersistentGlobalVariable("test", "false")
}</pre>
<br />
If you're wanting to hide a specific header here's a sample report Jason wrote you could take a look at
ngocvdoan
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="117824" data-time="1371781922" data-date="20 June 2013 - 07:32 PM"><p>
You can use this.repeateHeader from the onCreate() of the table<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>if(this.repeatHeader == true) {
reportContext.setPersistentGlobalVariable("test", "true")
}else{
reportContext.setPersistentGlobalVariable("test", "false")
}</pre>
<br />
If you're wanting to hide a specific header here's a sample report Jason wrote you could take a look at<br /></p></blockquote>
ngocvdoan
Thanks kclark
kclark
You're welcome, let me know if that works for you
ngocvdoan
Hi kclark,
What if I want do this this onPageBreak, will it still work?
ngocvdoan
Hi klark,
I tried onPageBreak and it works fine. Thanks
kclark
<p>You're welcome, let us know when you have any questions!
</p>