Try OpenEdge Now
skip to main content
.NET Open Clients
Passing Parameters : Passing DATASET and DATASET-HANDLE parameters : Passing a DATASET or DATASET-HANDLE as an OUTPUT parameter
 

Passing a DATASET or DATASET-HANDLE as an OUTPUT parameter

When the client application calls a method with a static ProDataSet (DATASET parameter) OUTPUT parameter, the client must provide a variable of the strongly typed DataSet class provided by ProxyGen. In this case, the client does not need to instantiate the object.
Note: This strongly typed DataSet class instance can then be used to pass an appropriate proxy INPUT ProDataSet parameter.
When the client application calls a method with a dynamic ProDataSet (DATASET-HANDLE parameter) OUTPUT parameter, the client must provide a variable of type System.Data.DataSet. Again, the client does not need to instantiate the object. In this case, the parameter can be returned as Unknown or undefined. As a result, you must ensure the client code is written to handle these cases.
On return from the method, the client can access the rows of the tables contained in the ProDataSet using the Tables and Rows properties on the on the strongly typed DataSet or System.Data.DataSet class.
Any data in the parameter at the time of the method call is replaced on return from the proxy object. All output data is immediately available to the client after the proxy call returns.