1
0
-1

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.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      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

       

      CommentAdd your comment...