(SOLVED) I couldnt set variable. where i am wrong?

Stimulsoft Reports.JS discussion
Post Reply
User avatar
ercan
Posts: 18
Joined: Thu Feb 07, 2019 8:21 am

(SOLVED) I couldnt set variable. where i am wrong?

Post by ercan »

I have a variable like this.
Image
And i am trying to set it enable on report but I coldnt success on it.
Where i am wrong?
I have tried all way but no success. with @ without @, from variable, from direct...

Code: Select all

				
var report = new Stimulsoft.Report.StiReport();
// Load reports from JSON object 

report.load(reportObject);
report["@eCert"] = true;
report["eCert"] = true;
report.dictionary.variables.getByName("eCert").valueObject = true;

report.setVariable("eCert", true);
report.setVariable("@eCert", true);

// Remove all connections in report template (they are used in the first place)
report.dictionary.databases.clear();
// Registered JSON data specified in the report with same name
var demo= <%= CertificateDataSet %>;
report.regData("table", "table", demo);
// Assign the report to the viewer
viewer.report = report;
User avatar
ercan
Posts: 18
Joined: Thu Feb 07, 2019 8:21 am

Re: (SOLVED) I couldnt set variable. where i am wrong?

Post by ercan »

ok Solved. Reason of Stimulsoft version. (Javascript doesnt support Watermark)

I updated latest version. fixed.
Lech Kulikowski
Posts: 6266
Joined: Tue Mar 20, 2018 5:34 am

Re: (SOLVED) I couldnt set variable. where i am wrong?

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply