i'm trying to create variable from code :
Code: Select all
var masquerlignesdetail = new Stimulsoft.Report.Dictionary.StiVariable();
masquerlignesdetail.name = "masquerlignesdetail";
masquerlignesdetail.alias = "masquerlignesdetail";
masquerlignesdetail.type = Stimulsoft.System.Int;
masquerlignesdetail.requestFromUser = false;
masquerlignesdetail.value = req.body.masquerlignesdetail; // come from http post
var di = new Stimulsoft.Report.Dictionary.StiDialogInfo();
di.dateTimeType = "DateAndTime";
masquerlignesdetail.dialogInfo = di;
report.dictionary.variables.add(masquerlignesdetail);
Code: Select all
dataBand.expressions.add(new Stimulsoft.Base.StiAppExpression('Enabled', "{masquerlignesdetail == 0}"));
also, we don't see documentation for StiDialogInfo class in documentation : https://admin.stimulsoft.com/documentat ... lsoft.html
I also create a report from code : see liste.mrt in attached file.
but when i want to save this report, i've got a json parse error.
Where is my error ?
Thanks you,
Fabien.