ATTACH-DATA-SOURCE( ) method
Attaches a Data-source object to a temp-table buffer in a ProDataSet object.
Return type: LOGICAL
Applies to: Buffer object handle
buffer-handle
datasource-hdl
pairs-list
An optional character expression that evaluates to a comma-separated list of field name pairs that specify different names in the Data-source object buffer and the ProDataSet temp-table buffer using the following syntax:
The order within each field name pair does not matter; each pair must contain one field name from the Data-source object buffer and one field name from the ProDataSet object buffer. If you have a field in both the Data-source object buffer and the ProDataSet object buffer with the same, and you do not want to map them to each other, you must qualify each field name with its table name.You can use the ATTACHED-PAIRLIST attribute to retrieve this list of field name pairs.except-fields
An optional character expression that evaluates to a comma-separated list of fields in the ProDataSet object buffer that will not be populated with data from the data source (that is, fields to exclude). Use this option when it is easier to specify fields to exclude rather than include. You can specifyexcept-fields
orinclude-fields
, but not both.include-fields
An optional character expression that evaluates to a comma-separated list of fields to include in the ProDataSet object buffer, as an alternative to specifying fields to exclude inexcept-fields
. Use this option when it is easier to specify fields to include rather than exclude. You can specifyinclude-fields
orexcept-fields
, but not both. If you specifyinclude-fields
, you must setexcept-fields
to the Unknown value (?
).See also: DETACH-DATA-SOURCE( ) method
OpenEdge Release 10.2B
|