What are the data to connect to the DB from the on-demand application?

Confluence User - 24 Jan, 2017

I am developing a small application of report counseling sessions on the Joget-on-demand platform. Everything works fine, however, I could not find the information regarding the database server to assemble the necessary reports via Jasper. What are the data to connect to the database from the on-demand application? This also to generate custom lists and to use some procedures through the bean-shell.

db;on-demand;jasper;server

2


25 Jan, 2017
confluenceUser
1
confluenceUser

Hi Camilo,

When you configure the datasource in the JasperReports menu element, you can select the Default Datasource to connect to the database for your on-demand account. This also works for other plugins like the JDBC Datalist Database Binder.

For BeanShell, you can use the sample code below:

DataSource ds = (DataSource)AppUtil.getApplicationContext().getBean("setupDataSource");
con = ds.getConnection();

Best Regards
Julian

 

25 Jan, 2017
confluenceUser
confluenceUser

thanks a lot!!!

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print