Page 2 of 7

Re: java example exception in viewer.jsp

Posted: Fri Sep 22, 2017 10:47 am
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);

Re: java example exception in viewer.jsp

Posted: Sat Sep 23, 2017 5:15 am
by xiaohaoxifei
OK, Thank you so much.

Re: java example exception in viewer.jsp

Posted: Sat Sep 23, 2017 10:04 am
by xiaohaoxifei
Sorry to bother again, can I change the url of "Edit Report" or "New Report" button? If so, how?

Re: java example exception in viewer.jsp

Posted: Mon Sep 25, 2017 12:14 pm
by Vadim
Hello.
This buttons only for our internal use (for demo).
No methods to change its.

Re: java example exception in viewer.jsp

Posted: Tue Sep 26, 2017 7:46 am
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?

Re: java example exception in viewer.jsp

Posted: Wed Sep 27, 2017 8:33 am
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?

Re: java example exception in viewer.jsp

Posted: Wed Sep 27, 2017 8:49 am
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);

Re: java example exception in viewer.jsp

Posted: Wed Sep 27, 2017 10:12 am
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?

Re: java example exception in viewer.jsp

Posted: Wed Sep 27, 2017 11:11 am
by Vadim
xiaohaoxifei wrote: How about the IE displaying problem with the designer page?
Hello.
This is fixed & will available in next build

Re: java example exception in viewer.jsp

Posted: Wed Sep 27, 2017 11:40 am
by xiaohaoxifei
Great to hear that.
Huge thanks.