Scripting: Access to Report Parameter
<strong class='bbc'>Is there a possibility to access a Report Parameter from within a script?</strong><br />
<br />
<strong class='bbc'>For example:</strong><br />
I run a report from Java Code, and pass several Parameters.<br />
One of these Parameters should be the marker line value.<br />
Then I want to set a marker line according to the passed value.<br />
How can i accomplish that? Please help!
<br />
<strong class='bbc'>For example:</strong><br />
I run a report from Java Code, and pass several Parameters.<br />
One of these Parameters should be the marker line value.<br />
Then I want to set a marker line according to the passed value.<br />
How can i accomplish that? Please help!
0
Comments
-
thx for the reply ... unfortunatly your solution isn't working in my environment ...<br />
<br />
nevertheless i finally figured it out ...<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
function beforeGeneration(chart, icsc)
{
[B]var reportContext = icsc.getExternalContext().getScriptable();
ml = reportContext.getParameterValue("MarkerLine")[/B]
chart = icsc.getChartInstance();
marker = chart.getAxes().get(0).getAssociatedAxes().get(0).getMarkerLines().get(0).getValue().setValue(ml);
}
</pre>0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 117 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management