java example exception in viewer.jsp

Stimulsoft Reports.JAVA discussion
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
You can add database in code for example onOpenReportTemplate event, with path(inputstream) to data or embedded data like:
StiJsonDatabase jsonDatabase = new StiJsonDatabase("json");
jsonDatabase.setEmbeddedData("{}");
report.getDictionary().getDatabases().add(jsonDatabase);
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

OK, Thank you so much.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Sorry to bother again, can I change the url of "Edit Report" or "New Report" button? If so, how?
Attachments
url_change.png
url_change.png (10.05 KiB) Viewed 4829 times
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

Hello.
This buttons only for our internal use (for demo).
No methods to change its.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Vadim wrote:Hello.
This buttons only for our internal use (for demo).
No methods to change its.
Thanks, I've found out that Chrome works well with both the designer and viewer page, but things are different for the designer page using Internet Explorer.
Any suggestion for IE?
Attachments
ie_bug.png
ie_bug.png (60.35 KiB) Viewed 4803 times
Last edited by xiaohaoxifei on Wed Sep 27, 2017 8:19 am, edited 1 time in total.
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Is there a method in the StiOracleDatabase object to set the query sql string dynamically? just like the setJsonData method in StiJsonDatabase object?
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

xiaohaoxifei wrote:Is there a method in the StiOracleDatabase object to set the query sql string dynamically? just like the setJsonData method in StiJsonDatabase object?
Hello.
You can use next way:

Code: Select all

((StiOracleDatabase)report.getDictionary().getDatabases().get(0)).setConnectionString(value);
((StiOracleSource) report.getDictionary().getDataSources().get(0)).setSqlCommand(value);
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Vadim wrote:
xiaohaoxifei wrote:Is there a method in the StiOracleDatabase object to set the query sql string dynamically? just like the setJsonData method in StiJsonDatabase object?
Hello.
You can use next way:

Code: Select all

((StiOracleDatabase)report.getDictionary().getDatabases().get(0)).setConnectionString(value);
((StiOracleSource) report.getDictionary().getDataSources().get(0)).setSqlCommand(value);
Thanks, I got it.

How about the IE displaying problem with the designer page?
Attachments
ie_bug.png
ie_bug.png (60.35 KiB) Viewed 4801 times
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: java example exception in viewer.jsp

Post by Vadim »

xiaohaoxifei wrote: How about the IE displaying problem with the designer page?
Hello.
This is fixed & will available in next build
xiaohaoxifei
Posts: 34
Joined: Mon Sep 18, 2017 6:07 am

Re: java example exception in viewer.jsp

Post by xiaohaoxifei »

Great to hear that.
Huge thanks.
Post Reply