Calling OE OpenClient from Rollbase: Rollbase can access Ja

Posted by Bill Wood on 23-Jan-2014 11:16

One thing I have been curious about is how to take Java Proxy and other OpenClient classes and use those in Rollbase Object Script.   Peter Judge posted a nice new whitepaper on this -- Calling ABL Business Logic from Rollbase via OpenClient -  at https://community.progress.com/community_groups/rollbase/m/documents/1124.aspx

This shows how you can extend a private-cloud install of Rollbase with your own java classes, and then invoke these in JavaScript.  For exampple:

var status = new Packages.com.progress.open4gl.StringHolder();
var s2k = new Packages.samples.sports2000.Sports2000 
              ("AppServer://localhost:5162/Sports2000", "","", "");

// Pass the values to ABL and retrieve the status
s2k.update_department(deptCode, deptName, status);
// Disconnect from the AppServer
s2k._release();

// Create an activity/audit record
rbv_api.createActivityLog("$ORG_DEPT", {!id}, "OE AppServer Status: " + status.getStringValue());

 

All Replies

Posted by Bill Wood on 04-Mar-2014 13:46

A side note on this is that the same technique can be used for any Java class, not just OpenEdge OpenClient (o4gl.jar).  This allows very generic extensibility of the "Private Cloud" Rollbase platform.

This thread is closed