Home
Designing Analytics Reports
Set parameter value only at runtime
Migrateduser
<p>Hi,</p>
<p> </p>
<p>i want to set the value of parameter only at runtime. i have a script in the beforOpen method of a dataset that changes a part of queryText. My Problem is, this script is also executed when i try to edit the dataset from the query builder editor.</p>
<p> </p>
<p>can i do something like this:</p>
<pre class="_prettyXprint _lang-js">
if (report.isRuntime() == true) {
this.queryText = this.queryText.replace("--<$>", " AND S.S_ID IN ("+params["HiddenSessions"].value+")");
}
</pre>
<p>Thanks for help!</p>
Find more posts tagged with
Comments
There are no comments yet