java example exception in viewer.jsp
Re: java example exception in viewer.jsp
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);
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);
-
- Posts: 34
- Joined: Mon Sep 18, 2017 6:07 am
Re: java example exception in viewer.jsp
OK, Thank you so much.
-
- Posts: 34
- Joined: Mon Sep 18, 2017 6:07 am
Re: java example exception in viewer.jsp
Sorry to bother again, can I change the url of "Edit Report" or "New Report" button? If so, how?
- Attachments
-
- url_change.png (10.05 KiB) Viewed 4846 times
Re: java example exception in viewer.jsp
Hello.
This buttons only for our internal use (for demo).
No methods to change its.
This buttons only for our internal use (for demo).
No methods to change its.
-
- Posts: 34
- Joined: Mon Sep 18, 2017 6:07 am
Re: java example exception in viewer.jsp
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.Vadim wrote:Hello.
This buttons only for our internal use (for demo).
No methods to change its.
Any suggestion for IE?
- Attachments
-
- ie_bug.png (60.35 KiB) Viewed 4820 times
Last edited by xiaohaoxifei on Wed Sep 27, 2017 8:19 am, edited 1 time in total.
-
- Posts: 34
- Joined: Mon Sep 18, 2017 6:07 am
Re: java example exception in viewer.jsp
Is there a method in the StiOracleDatabase object to set the query sql string dynamically? just like the setJsonData method in StiJsonDatabase object?
Re: java example exception in viewer.jsp
Hello.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?
You can use next way:
Code: Select all
((StiOracleDatabase)report.getDictionary().getDatabases().get(0)).setConnectionString(value);
((StiOracleSource) report.getDictionary().getDataSources().get(0)).setSqlCommand(value);
-
- Posts: 34
- Joined: Mon Sep 18, 2017 6:07 am
Re: java example exception in viewer.jsp
Thanks, I got it.Vadim wrote:Hello.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?
You can use next way:Code: Select all
((StiOracleDatabase)report.getDictionary().getDatabases().get(0)).setConnectionString(value); ((StiOracleSource) report.getDictionary().getDataSources().get(0)).setSqlCommand(value);
How about the IE displaying problem with the designer page?
- Attachments
-
- ie_bug.png (60.35 KiB) Viewed 4818 times
Re: java example exception in viewer.jsp
Hello.xiaohaoxifei wrote: How about the IE displaying problem with the designer page?
This is fixed & will available in next build
-
- Posts: 34
- Joined: Mon Sep 18, 2017 6:07 am
Re: java example exception in viewer.jsp
Great to hear that.
Huge thanks.
Huge thanks.