Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
pagebreak depending on the data retrieved from the table
Migrateduser
<p>There is a case when either of the table grows and I want to that page to break when the total rows of the both the table accumulate grows beyond a certain point eg. 40.</p>
<p> </p>
<p>Each page is designed as a grid </p>
<p>Grid1 has two tables:</p>
<div> </div>
<div>Table 1: I click on the table and go to the onCreate of script tab.</div>
<div> </div>
<div>table1 =this.getRowData().getExpressionValue('row[count]');</div>
<div>reportContext.setPersistentGlobalVariable("table1", table1);</div>
<div> </div>
<div>Table 2: I click on the table and go to the onCreate of script tab.</div>
<div> </div>
<div>
<div>table2 = this.getRowData().getExpressionValue('row[count1]');</div>
<div>reportContext.setPersistentGlobalVariable("table2", table2);</div>
<div>table1 = reportContext.getPersistentGlobalVariable("table1");</div>
<div>sum = table1 + table2;</div>
<div>if(sum > 30){</div>
<div>this.getStyle().pageBreakBefore = "always";</div>
<div>}</div>
</div>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet