Using the Preview view of a DataWindow object

You use the Preview view of a DataWindow object to view it as it will appear with data and test the processing that takes place in it.

StepsTo display the Preview view of a DataWindow object open in the DataWindow painter:

  1. If the Preview view is not already displayed, select View>Preview from the menu bar.

    In the Preview view, the bars that indicate the bands do not display, and, if you selected Retrieve on Preview in the DataWindow wizard, PowerBuilder retrieves all the rows from the database. You are prompted to supply arguments if you defined retrieval arguments.

    As the rows are being retrieved, the Retrieve button in the toolbarPainterBar changes to a Cancel button. You can click the Cancel button to stop the retrieval.

  2. Test your DataWindow object.

    For example, modify some data, update the database, re-retrieve rows, and so on, as described below.