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
How to check the data element visibility
Migrateduser
<p>Hi,</p>
<p>On my data element (dataSetRow["invest_amt"]) I have a visibility expression and on render I have a javascript statement.</p>
<p>My problem now is that it executes the javascript also if it is not visible, so I like to extend the javascript statement with something like "if (this.isVisible()){}".</p>
<p> </p>
<p>
</p>
<p>Visibility expression:</p>
<p>row["allocn_typ_cd"] != "INVEST" && row["allocn_typ_cd"] != "INVEST_YRC"</p>
<p> </p>
<p>
</p>
<p>Javascript:</p>
<p>if (reportContext.getPersistentGlobalVariable("invest_amt")){<br>
var subtotal = 0 + parseFloat(reportContext.getPersistentGlobalVariable("invest_amt")) + parseFloat(this.getValue());<br>
}<br>
else{<br>
var subtotal = 0 + parseFloat(this.getValue());<br>
}<br>
reportContext.setPersistentGlobalVariable("invest_amt",subtotal.toString());</p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet