Try OpenEdge Now
skip to main content
Introducing the Progress Developer Studio for OpenEdge Visual Designer
Creating the Department Window : Adding a ProBindingSource control to the form

Adding a ProBindingSource control to the form

To configure the ProBindingSource control in this section, you will import schema information from an XSD file instead of importing schema from a database (which is described in Defining the schema). Importing schema information from an XSD file is faster and less error-prone than other methods.
See Data binding for more details about data binding.
To add a ProBindingSource control to the Department form:
1. With departmentForm.cls open in the Visual Designer canvas, expand the OpenEdge Controls control group in the OpenEdge Toolbox.
2. Drag ProBindingSource and drop it on the Department form.
3. When the ProBindingSource Designer appears, click the Import Schema from File icon on the toolbar. The Open dialog appears.
4. Go to the openedge\tutorial\services folder in theSampleApp project and choose the department.xsd file.
The department.xsd describes the schema of the edepartment, eemployee, and efamily temp tables.
Note: Creating an XML Schema Definition (XSD) file is a portable and efficient way to describe the schema of a data source. You can create XSD files from databases, temp tables, or ProDataSets with the ABL WRITE-XMLSCHEMA method.
5. Click Open. The schema from department.xsd is added to the Available Schemapane in the ProBindingSource Designer dialog.
6. Select the tables and columns that you want add to your schema definition from the Available Schema pane and click Add.
7. Click OK in the ProBindingSource Designer to save your changes.
When you complete this procedure, you have a ProBindingSource control with the default name bindingSource1. This is the name that identifies the control in code. You can change the default name to something more meaningful by changing the Name property in the Properties view.