Global Variables
I had a report where I wanted to pass the values from one table to another so that I could do a calculation. What I did was create a global variable. Following is the process I took to do so:
Initialize your global variables
On the report level, using Scripting select the Initialize method
Use the reportContext.setPersistentGlobalVariable("variable_name", "variable_value") function for initializing the variable

Populating your variable with the value in the report
Select the element in the report that will have the value for the variable and then go into the Scripting tab:

Comments
Post a Comment