Page 1 of 1

Override variables on report

Posted: Wed Oct 14, 2015 2:43 pm
by rafaelwithoeft
Hello, how to do this function on Report.JS?
I want to set values for my variables;

Code: Select all

// JAVA
report.getVariables().put(chave, valor);
Best Regards

Re: Override variables on report

Posted: Thu Oct 15, 2015 5:55 am
by HighAley
Hello, Rafael.

You could set a value for a variable with next code:

report.setVariable(paramName, paramValue);

Thank you.

Re: Override variables on report

Posted: Thu Oct 15, 2015 11:23 am
by rafaelwithoeft
Throwing error;
Uncaught TypeError: Cannot read property 'set' of null;

I opened a issue ticket on support with my code.

Thank you

Re: Override variables on report

Posted: Thu Oct 15, 2015 12:49 pm
by Andrew
Rafael,

Thank you for this. We will reply you in the ticket system.