PUBLIC BindingSource ( INPUT query-hdl AS HANDLE, INPUT include-fields AS CHARACTER,INPUT except-fields AS CHARACTER )PUBLIC BindingSource ( INPUT dataset-hdl AS HANDLE, INPUT parent-buffer-name AS CHARACTERINPUT parent-buffer-hdl AS HANDLE, INPUT include-fields AS CHARACTER,INPUT except-fields AS CHARACTER )PUBLIC BindingSource ( INPUT buffer-hdl AS HANDLE, INPUT include-fields AS CHARACTER,INPUT except-fields AS CHARACTER )PUBLIC BindingSource ( )An optional CHARACTER expression that evaluates to a comma-separated list of fields in the ABL data source object to bind to the ProBindingSource. To include all fields, specify an asterisk (*) in include-fields. To include all but a few fields, specify an asterisk (*) in include-fields and a comma-separated list of fields to exclude in except-fields. If include-fields contains specific fields, except-fields is ignored.
"table1.field1, table1.field2, table2.field1, table1.field3"Do not specify a RAW temp-table or a database field in include-fields. If you explicitly specify a RAW field, the AVM generates a run-time error. If you specify an asterisk (*) to include all fields and there is a RAW field in the table, the AVM excludes it automatically even if it is not specified in except-fields.A CHARACTER expression that evaluates to a comma-separated list of fields in the ABL data source object to exclude from binding to the ProBindingSource. You can specify fields to exclude only when include-fields contains an asterisk (*). If you do not have any fields to exclude, you must specify the empty string (""). If include-fields contains specific fields, except-fields is ignored.If the query is a join with duplicate field names in the tables, you should qualify the field names with the buffer names using the buffer-name.field-name syntax. Also, the ProBindingSource treats elements in an array field as separate fields and makes them unique by appending their array subscript using the array-name[subscript] syntax.For more information on how the ProBindingSource manages currency between parent and child buffers, including a code example, see the data-binding chapter in OpenEdge Development: GUI for .NET Programming.
To limit which fields are exposed in the data source object, use the SetFields( ) method before binding to the data source object.
You must bind an unbound ProBindingSource object instance to an ABL data source object at run time by setting the ProBindingSource’s Handle property to the handle of the associated ABL data source object.
When you set the ProBindingSource’s Handle property, the AVM includes, by default, all fields from the ABL data source object’s schema in the .NET control. (This is equivalent to specifying an asterisk (*) in the include-fields parameter when invoking a ProBindingSource constructor with parameters.) If you want to limit the available fields, you must use the ProBindingSource’s SetFields( ) method before you specify the Handle property. Attempting to use the SetFields( ) method after specifying the Handle property causes the ProBindingSource to throw a .NET exception.System.Windows.Forms.BindingSource class (from the .NET Framework)
For information on the public class members inherited from the System.Windows.Forms.BindingSource class, refer to the .NET Framework class library.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |