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
chart show hide According to parameter
Migrateduser
<div>Hi i have requirement to show and hide chart based on list box-parameter now let us consider that am having three dataset for three chart in report.</div><div>i )if user select first list box-parameter like item-->it have to pass value to first chart and display that chart only</div><div>ii) if user select Second list box-parameter like main-->it have to pass value to second chart and display that chart only</div><div>like wise it will go so i tried with before factory or html script but it Two cant work can somebody help on this???</div><div> </div><div><pre class="_prettyXprint">Beforefactory:itemname = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("item");mainname = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("main");subname = reportContext.getReportRunnable().designHandle.getDesignHandle().findElement("sub");if (params["item"].value){mainname.drop();subname.drop();}else if (params["main"].value){itemname.drop();subname.drop();}else{mainname.drop();itemname.drop();} (or) Html script in Report<script>if (<VALUE-OF>params["item"].value</VALUE-OF> == true){document.getElementById("A").style.display = "block";document.getElementById("B").style.display = "none";document.getElementById("C").style.display = "none";}if(<VALUE-OF>params["main"].value</VALUE-OF> == true){document.getElementById("A").style.display = "none";document.getElementById("B").style.display = "block";document.getElementById("C").style.display = "none";}if(<VALUE-OF>params["subgroup"].value</VALUE-OF> == true){document.getElementById("A").style.display = "none";document.getElementById("B").style.display = "none";document.getElementById("C").style.display = "block";}</script></pre></div>
Find more posts tagged with
Comments
There are no comments yet