Designer Preview & Viewer running SQL twice

Stimulsoft Reports.JS discussion
Post Reply
Barnaby
Posts: 27
Joined: Tue Dec 20, 2016 1:57 am

Designer Preview & Viewer running SQL twice

Post by Barnaby »

Currently the designer preview & viewer run's the SQL twice (2020.2.2).
Using the Firebird database datasource.

I tested the issue on a few versions, using the same report, it used to work correctly until 2019.4.2.

2019.3.4 - SQL ran once
2019.4.1 - SQL ran once
2019.4.2 - SQL ran 3 times
2020.1.1 - SQL ran 3 times
2020.2.1 - SQL ran 2 times
2020.2.2 - SQL ran 2 times

The report itself seems to only generate once, but it uses data from the last SQL statement ran.

Thanks,
Barnaby.
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer Preview & Viewer running SQL twice

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data for analysis.

Thank you.
Barnaby
Posts: 27
Joined: Tue Dec 20, 2016 1:57 am

Re: Designer Preview & Viewer running SQL twice

Post by Barnaby »

Hey,

When I was trying to create a demo report, I found that it's only the SQL's using Variables that run twice.

I've attached a NodeJS server that returns dummy data to Stimulsoft.
Just run the NodeJS server & open localhost:8080

It will open the designer with a test report that uses 2 SQL statements, one with no variable, one using the variable.
You will see that the SQL using the variable runs twice.


Thanks.
Attachments
Stimulsoft SQL Issue.zip
(4.69 MiB) Downloaded 243 times
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer Preview & Viewer running SQL twice

Post by Lech Kulikowski »

Hello,

Please try to set the RequestParameters=true option.

Thank you.
Barnaby
Posts: 27
Joined: Tue Dec 20, 2016 1:57 am

Re: Designer Preview & Viewer running SQL twice

Post by Barnaby »

Hi,

I'm already using that parameter, it doesn't fix the issue.
Turning it off does the exact same thing, but when you hit 'Submit' for the parameters, it then runs it again, as expected. Both times running the SQL with the Variable twice.


I noticed that I missed a file causing the demo server attached above not to run.
I've now reattached it to this.
Run the 'run server.bat' & then open localhost:8080

Thanks
Attachments
Stimulsoft SQL Issue.zip
(4.69 MiB) Downloaded 240 times
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer Preview & Viewer running SQL twice

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
Post Reply