Using the Preview view

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

StepsTo display the Preview view of a DataWindow object :

  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, PocketBuilder retrieves all the rows from the database. You are prompted to supply arguments if you defined retrieval arguments.

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

    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”.

    DataWindow objects that have stored data If the DataWindow object has stored data in it, no data is retrieved from the database.

UltraLite connections

If you are connected to an UltraLite database and preview fails with a Select error: SQLE_SYNTAX_ERROR message, you might have opened a DataWindow object that was created using a different DBMS and that uses qualified SQL. The column names will be qualified with an owner name such as dba. UltraLite does not support table owners. There are two ways to remove the qualifiers:

elect Edit>Replace to replace all occurrences of the owner name and the period that follows it with an empty string. After you save and close the source, the DataWindow displays correctly in the Preview view.