Progress
Application Development
Environment — Getting Started


Resizable Dynamic Browser

Progress Version 9 introduced several new attributes for data browsers and viewers. This module gives you the opportunity to see what some of these new attributes do. The attributes demonstrated in this module allow an end user to change the way the data is displayed in the browser. The changes occur only in the user interface; they do not change field widths or column positions in the data source.

Choose the Resizable Dynamic Browser button on the SportsPro main window to launch this module:

In a normal browser, these attributes are set on the Advanced Properties dialog box in the AppBuilder at design time. Because the browser is dynamic, the attributes have to be set programmatically. The browser also uses the dynamic filters supplied as part of the ADM2.

Table 2–6 describes the major objects used in the Resizable Dynamic Browser module.

Table 2–6: Components Of the Resizable Dynamic Browser Module
Object Or File Name
Object Type
Function
wfndord.w
SmartWindow
Serves as a container for the other objects in the module.
dorder
SmartDataObject
Queries the Order table to retrieve all order records for the query. The module accepts the handle for the instance of dorder in the SportsPro main window.

NOTE: Because this module uses a handle passed in from the main window, you must run the main window and launch it from there.

getnewfields.p
Procedure file
Runs during the initializeObject internal procedure to populate the seldspflds selection list.
dynfilter
SmartFilter
Enables the user to dynamically filter the records shown in the browser.
seldspflds
Selection-list
Lists the fields in the Order table that can be displayed in the browser.
BUTTON-2
Button
Creates a dynamic browser instance from the master file, adm2\dynbrowser.w, using information from the filter and selection list.
dynbrowser
SmartDataBrowser
Enables the user to browse a result set created dynamically from dorder and information from the filter and selection list.
tglbrowserresizable
Toggle-box
Sets the RESIZABLE and SELECTABLE attributes of the browser.
tglcolmovable
Toggle-box
Sets the COLUMN–MOVABLE attribute of the browser.
tglcolumnresizable
Toggle-box
Sets the COLUMN–RESIZABLE attribute of the browser.
tglrowresize
Toggle-box
Sets the ROW–RESIZABLE attribute of the browser.

For more information on resizable data browsers and viewers, see the chapters on using the browse widget and on direct manipulation in the Progress Programming Handbook .


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095