test dictionary.variables

Stimulsoft Reports.JS discussion
Post Reply
chenyb
Posts: 20
Joined: Fri Sep 22, 2017 8:39 am

test dictionary.variables

Post by chenyb »

report.setVariable("test1", "test1", "testVar");
report.dictionary.synchronize();
//after run these code,"test1" will not showed in Variable list of designer
//test.mrt is a new report

report.dictionary.variables.add("test"); //it will raise error
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: test dictionary.variables

Post by Alex K. »

Hello,

Could you explain your issue in more details?

Thank you.
chenyb
Posts: 20
Joined: Fri Sep 22, 2017 8:39 am

Re: test dictionary.variables

Post by chenyb »

JS Code:
//create new report
report.setVariable("test1", "test1", "testVar");
report.dictionary.synchronize();
//after run these code,"test1" will not showed in Variable list of designer
//test.mrt is a new report

test1 not display in variable list.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: test dictionary.variables

Post by HighAley »

Hello.

What do you what to do?
Do you want to add a new variable or change a value of the existing variable?

Thank you.
chenyb
Posts: 20
Joined: Fri Sep 22, 2017 8:39 am

Re: test dictionary.variables

Post by chenyb »

use js create a report to show simple data,without rmt file
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: test dictionary.variables

Post by Alex K. »

Hello,

Please check the sample at the following link:
https://www.stimulsoft.com/en/samples/j ... -from-code

Thank you.
Post Reply