Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Running procedures and user-defined functions : Running an internal procedure or user-defined function on an OpenProcObject
 

Running an internal procedure or user-defined function on an OpenProcObject

Once you obtain your com.progress.open4gl.javaproxy.OpenProcObject instance, you can run any internal procedure or user-defined function defined in the object. However, if you are calling a user-defined function, you must identify the return type of the function before calling it. For more information, see Defining the return type for a user-defined function. For information on accessing the return value after calling the function, see Accessing user-defined function return values.
Run the internal procedure or user-defined function using the following method on the OpenProcObject:
Syntax
public void runProc(String procName, ParamArray paramArray)
                   throws Open4GLException, RunTime4GLException,
                   SystemErrorException
procName
The name of an internal procedure or user-defined function provided by the OpenProcObject.
paramArray
Specifies a com.progress.open4gl.javaproxy.ParamArray that holds the parameters for the internal procedure or user-defined function. For more information, see Creating a parameter array.