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
Report Parameter based on data set value
Migrateduser
<p>Hi,</p>
<p> </p>
<p>I'm currently trying to generate a report parameter (boolean) based on the value of a data set column (string), which only has one row (string). <br>
</p>
<p>So what I was starting with, is the following script in onFetch of the data set:</p>
<pre class="_prettyXprint">
// onFetch
if(row["typ"] == "JOU") {
reportContext.setPersistentGlobalVariable("multipleUser", true);
}</pre>
<p>The report parameter itself is a boolean checkbox and in getDefaultValueList I want to catch the variable:</p>
<pre class="_prettyXprint">
// getDefaultValueList
reportContext.getPersistentGlobalVariable("multipleUser");</pre>
<p>As I am quite a beginner in JavaScript I am not sure if this is right and am hoping for some help regarding the code or even if my idea to do it like this is wrong.</p>
<p>I've seen in other posts that while generating the report with a parameter window, onFetch and getDefaultValueList are used more than once, but since I am only setting a value in one and retrieving it in the other, that shouldn't have an effect, right?<br><br><br>
Thank you in advance and best regards!</p>
Find more posts tagged with
Comments
There are no comments yet