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.
To display the Preview view of a DataWindow object open in the DataWindow painter:
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.
In external DataWindow objects If the DataWindow object uses the External data source, no data is retrieved. You can import data, as described in “Importing data into a DataWindow object”.
In DataWindow objects that have stored data If the DataWindow object has stored data in it, no data is retrieved from the database.
As the rows are being retrieved, the Retrieve button in the PainterBar changes to a Cancel button. You can click the Cancel button to stop the retrieval.
Test your DataWindow object.
For example, modify some data, update the database, re-retrieve rows, and so on, as described below.