Example: Pass a temp-table as an OUTPUT ProDataGraph
- Last Updated: June 30, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
The following example demonstrates the complete workflow for calling an ABL procedure
that returns a single temp-table as an OUTPUT ProDataGraph. The Java
client defines the table schema, invokes the procedure, and iterates the returned
rows.
The ABL procedure GetOrdersForCustNum.p accepts an
INPUT integer parameter and returns all matching orders as an
OUTPUT TABLE:
|
The Java client SingleTable.java performs the following steps:
- Defines the temp-table schema using a
ProDataGraphMetaDataobject containing a singleProDataObjectMetaDatathat maps to thettOrdertemp-table fields. - Opens a connection and creates an
OpenAppObjectto invoke the remote procedure. - Builds a
ParamArraywith anINPUTinteger parameter and anOUTPUT TABLEparameter, passing the schema metadata. - Calls
runProc()to execute the ABL procedure on the application server. - Retrieves the populated
ProDataGraphfrom the output parameter and iterates theProDataObjectrows by table name.
|
Note that for a single temp-table ProDataGraph, you use
ParamArray.addTable() rather than addDataset().
The ProDataGraphMetaData contains exactly one
ProDataObjectMetaData and no
ProDataRelationMetaData, since there is no parent–child
relationship in a single-table graph.