Using DataWindow Objects in PowerBuilder .NET

You can use DataWindow objects in WPF Window applications.

Before you can use a DataWindow object, you must build it using the DataWindow painter.

This procedure describes the overall process for creating and using DataWindow objects. For complete information about using DataWindow objects in different kinds of applications and writing code that interacts with DataWindow objects, see the DataWindow Programmers Guide.

  1. Create the DataWindow object by using one of the DataWindow wizards in the DataWindow group of the New dialog box.
    The wizard helps you define the data source, presentation style, and other basic properties of the object. Define additional properties for it, such as display formats, validation rules, and sorting and filtering criteria.
  2. Place a DataWindow control in a window or user object.
    The control enables your application to communicate with the DataWindow object you created in the DataWindow painter.
  3. Associate the DataWindow control with the DataWindow object.
  4. In the Window painter, write scripts to manipulate the DataWindow control and its contents.
    For example, use the PowerScript Retrieve method to retrieve data into the DataWindow control.
    You can write scripts for the DataWindow control to deal with error handling, sharing data between DataWindow controls, and so on.