Hello.HighAley wrote: ↑Fri Dec 18, 2020 10:04 am Hello,
There is an error in your code:
The third row should beCode: Select all
var a = new Stimulsoft.Report.Components.StiText; a.name = "**DataSourceSqlCommand**"; a.page = command.report.Pages[0]; var param = Stimulsoft.Report.Engine.StiParser.StiParser.parseTextValue('{users}', a);
Thank you.Code: Select all
a.page = command.report.pages[0];
I have tested the method with
a.page = command.report.pages[0];
but pages is not defined in function StiHelper.prototype.process(). I have checked param pages before jsHelper.send(json, callback) is executed.
Code: Select all
var a = new Stimulsoft.Report.Components.StiText;
a.name = "**DataSourceSqlCommand**";
a.page = command.report.pages[0];
...
jsHelper.send(json, callback);
Code: Select all
Uncaught TypeError: Cannot read property '0' of undefined
at eval (eval at StiHelper.process (viewer?lotnum=1&report_id=158&file_name=test_applics.mrt&user_id=21:33), <anonymous>:1:21)
at StiHelper.process (viewer?lotnum=1&report_id=158&file_name=test_applics.mrt&user_id=21:47)
at z.viewer.onBeginProcessData (viewer?lotnum=1&report_id=158&file_name=test_applics.mrt&user_id=21:135)
Can I clarify if you managed to fix anything on this proposal?HighAley wrote: ↑Tue Dec 15, 2020 6:58 pm Hello.
We have an assumption about your issue.
We will try to make an improvement for you.
But it's better to see your report template with sample data to be sure that it will work out.
In any case, you need to make changes in the report too.
And it's better to use the expression from the variable in the SQL query.
Thank you.
Thanks.