Hello there, I'm testing Stimulsoft reports for javaScript, I would like to know if I can
change the value of a Text component inside a Report by code, how can I do that?
Thanks in advance..
Change Text Value by code
Re: Change Text Value by code
Hi Ricardo,
If you define a variable var1 in the Report Dictionary and if you add this variable into the Text Component as follows:
then you could change the value of this variable from the code as follows:
Thank you,
Edward
If you define a variable var1 in the Report Dictionary and if you add this variable into the Text Component as follows:
Code: Select all
{var1}
Code: Select all
report.dictionary.variables.getByName("var1").valueObject = "your value";
Edward
Re: Change Text Value by code
Hi Edward, thanks for your reply, I used a different approach, creating a Text component in Runtime.
It worked!
Thanks,
Ricardo
It worked!
Thanks,
Ricardo
Re: Change Text Value by code
Hello,
Great! Thank you for letting us know about this.
Have a nice day!
Great! Thank you for letting us know about this.
Have a nice day!