1
0
-1

How to connect to Default Database by using BeanShell? Because I hope to store my data in the Default Database

At the load binder I selected workflow Form Binder But at the Store Binder i select Beanshell

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, there is an example in Bean Shell Programming Guide#UseasFormLoadBinderFormLoadBinder 

      	// retrieve connection from the default datasource
          DataSource ds = (DataSource)AppUtil.getApplicationContext().getBean("setupDataSource");
                  con = ds.getConnection();
        CommentAdd your comment...