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
Persisting Parameter Value throughout report
Migrateduser
<p>I have a requirement to manage the y axis scale on a bar chart dynamically based on external data.</p>
<p> </p>
<p>Currently:</p>
<p>I set the parameter value default (ie 50).</p>
<p>params["myParam"].value == 50</p>
<p>Execute a dataset using a table.</p>
<p>In that dataset, I set the parameter value based on stuff (ie 75).</p>
<p>params["myParam"].value ==75</p>
<p> </p>
<p>After this, I have a bar chart.</p>
<p> </p>
<p>In beforeDataSetFilled,</p>
<p>I set "gblscale" = icsc.getExternalContext().getScriptable().getParameterValue("myParam").</p>
<p> </p>
<p>In beforeGeneration,</p>
<p>I set yscale.setMax( NumberDataElementImpl.create(gblscale) )</p>
<p> </p>
<p>The Y Scale resolves to the default parameter value of 50. I want it to be 75.</p>
<p> I'm working in 3.2.22</p>
<p> </p>
<p>Thanks, Brian</p>
<p>
Find more posts tagged with
Comments
There are no comments yet