Sybase 2 Barcode Reader User Manual


 
CHAPTER 5 Enhancing DataWindow Objects
DataWindow Designer User’s Guide 159
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.
2 Test your DataWindow object.
For example, modify some data, update the database, re-retrieve rows, and
so on, as described below.
Retrieving data
Where DataWindow
Designer gets data
DataWindow Designer follows this order of precedence to supply the data in
your DataWindow object:
1 If you have saved data in the DataWindow object, DataWindow Designer
uses the saved rows from the DataWindow object and does not retrieve
data from the database.
2 DataWindow Designer uses the data in the cache, if there is any.
3 If there is no data in the cache yet, DataWindow Designer retrieves data
from the database automatically, with one exception. If the Retrieve on
Preview option is off, you have to request retrieval explicitly, as described
next.
Previewing without
retrieving data
If you do not want DataWindow Designer to retrieve data from the database
automatically when the Preview view opens, you can set the Retrieve on
Preview option. The Preview view shows the DataWindow object without
retrieving data.
To be able to preview without retrieving data automatically:
1 Select Design>Options from the menu bar.
The DataWindow Options dialog box displays.
2 Clear the Retrieve on Preview check box on the General page.
When this check box is cleared, your request to preview the DataWindow
object does not result in automatic data retrieval from the database.
Retrieve on Preview check box is available in the DataWindow wizards
During the initial creation of a DataWindow object, you can set the Retrieve on
Preview option.