PreviousNextIndex

CREATE DATASET statement

Creates a ProDataSet object dynamically at run time. The ProDataSet object that is created is empty.

Note: You can use the ADD-BUFFER( ) method and SET-BUFFERS( ) method to add buffers to a dynamic ProDataSet object.
Syntax

CREATE DATASET dataset-handle [ IN WIDGET-POOL widget-pool-name ]  

dataset-handle
IN WIDGET-POOL widget-pool-name
Notes
Example

Following is an example of how to create a dynamic ProDataSet object for Orders and their Orderlines:

DEFINE VARIABLE hDset AS HANDLE NO-UNDO. 
DEFINE VARIABLE hRel  AS HANDLE NO-UNDO. 
CREATE DATASET hDset. 
hDset:SET-BUFFERS(BUFFER ttOrder:HANDLE, BUFFER ttOrderLine:HANDLE). 
hRel = hDset:ADD-RELATION(BUFFER ttOrder:HANDLE, BUFFER ttOrderLine:HANDLE, 
  "ttOrder.OrderNum,ttOrderLine.OrderNum"). 

See also

ProDataSet object handle, DEFINE DATASET statement


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex