Override variables on report

Stimulsoft Reports.JS discussion
Post Reply
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Override variables on report

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Override variables on report

Post by HighAley »

Hello, Rafael.

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

report.setVariable(paramName, paramValue);

Thank you.
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Override variables on report

Post by rafaelwithoeft »

Throwing error;
Uncaught TypeError: Cannot read property 'set' of null;

I opened a issue ticket on support with my code.

Thank you
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Override variables on report

Post by Andrew »

Rafael,

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