Try OpenEdge Now
skip to main content
.NET Open Clients
Using the Open Client .NET OpenAPI to Directly Access the AppServer : Setting up parameters and return types : Defining the schema for a ProDataSet parameter
 

Defining the schema for a ProDataSet parameter

Defining the schema for an ABL ProDataSet (DATASET or DATASET-HANDLE) parameter is a multi-step process.
To define the schema for a ProDataSet parameter:
1. If the parameter is for input or input-output, define an ADO.NET DataSet to hold the parameter value.
2. Define a ProDataSetMetaData object to specify its schema.
3. Define the temp-tables for the ProDataSetMetaData object.
4. Define the data-relations for the ProDataSetMetaData object.
5. Add the ProDataSetMetaData object and the DataSet (if applicable) as a ProDataSet parameter to your ParamArray object using the appropriate set parameter method.
* Defining a ProDataSetMetaData object
* Defining the temp-tables for the ProDataSetMetaData object
* Defining the data-relations for the ProDataSetMetaData object
* Adding the ProDataSetMetaData object with its DataSet as a ProDataSet parameter