Add the ProDataObjectMetaData object to the ProDataGraphMetaData using the following ProDataGraphMetaData object method:

Syntax

public void addTable(ProDataObjectMetaData doMetaData)
doMetaData
Specifies the ProDataObjectMetaData for one temp-table in the ProDataSet parameter.

The following example adds a temp-table parameter defined with no indexes.

Example: OpenAPI fragment adding a temp-table parameter

// Create the ProDataObjectMetaData for the Customer table
ProDataObjectMetaData doCustMD = new ProDataObjectMetaData 
                                 ("ttCust", 3, false, 0, null, null, null);
doCustMD.setFieldMetaData(1, "CustNum",  0, Parameter.PRO_INTEGER, 0, 0);
doCustMD.setFieldMetaData(2, "Name",     0, Parameter.PRO_CHARACTER, 1, 0);
doCustMD.setFieldMetaData(3, "SalesRep", 0, Parameter.PRO_CHARACTER, 2, 0);
// Add the table to the ProDataGraph meta data
dgMetaData.addTable(doCustMD);

For more information on the objects and methods for defining the schema (meta data) of temp-tables in a ProDataGraph, see Access ABL ProDataSets.