Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio

> ## Customer section

> The Customer section of the Order Tracking System main window has a SDV that displays customer information. The Customer section has the following buttons:

> - Find Customer — Opens a dialog box to search for customer information.

> - Maintain Customer — Opens a dialog box to modify customer information.

> ##### Searching for customers

> The Find Customer button in the Order Tracking System main window opens the Find Customer window. In this window, you can view information about all customers, or you can find customers and view information based on specific search criteria.

> The Find Customer window is a nonmodal child window of the main window. As a result, you can move between the Find Customer window and the main window by clicking on either one.

> You can search the Sports2000 database dynamically by specifying query criteria at run time. Customers selected by the dynamic query appear in the browser.

> | To search for a customer:

> 1. Choose the Find Customer button. The Find Customer window appears:

> 2. Using the Customer selection list and buttons in the upper section of the window, build the following query in the editor:

> Name BEGINS "B"

> 3. Choose the Search button.

> The SDB displays customer names that start with “B”. From this window, you view details about a selected customer. You can also use the Show All button to remove the query and to view all the customers.

> 4. Select a row in the browser and choose the Display Detail button. The Display Customer dialog box appears:

> The Display Customer dialog is a child window of the Find Customer window. The Display Customer dialog has a SDV for displaying address and other information for the customer selected in the Find Customer window. To learn how to create this SDV, see Chapter 4, " Overview of SmartObject Technology."

> 5. After viewing the information, close the windows and return to the Order Tracking System main window.

> Note: Table 2–3 describes the important elements of these windows in detail.

> ##### Modifying customer information

> The Maintain Customer button in the Order Tracking System main window opens the Maintain Customer window. This window uses an instance of the same SDV that you saw in the Find Customer window. In this instance, the SDV is locally configured to allow you to change the record. This window also uses a SDF on the Comments field to enable you to view and enter comments. There is also an instance of a dynamic SmartToolBar that you use to navigate, create, and maintain customer records.

> The Maintain Customer window is a nonmodal child window of the main window. As a result, you can move between this window and the main window by clicking on either one.

> | To modify customer information:

> 1. Choose the Maintain Customer button. The Maintain Customer window appears:

> 2. Experiment with entering and updating changes in a customer’s address, telephone number, contact, e-mail, and fax information.

> 3. Close the window and return to the main window.

> Table 2–12 describes the major objects in the Maintain Customer section of the Order Tracking System.

> Table 2–12: Components of the Maintain Customer section
> Object or filename | Object type | Function
> --- | --- | ---
> `wmntcust.w` | SmartWindow | Serves as a container for the objects in the Customer Maintenance section of this module.
> `dcust` | SDO | Queries the Customer table to retrieve all customer records for the selected query. When this section is launched, it accepts the handle for the instance of `dorder` in the Order Tracking System main window. Note: This module uses a handle passed in from the main window. This module does not run properly unless launched from the main window.
> `dyntoolbar` | SmartToolBar | Enables the user to add, copy, delete, or save the current customer record.
> `vcust2` | SDV | Displays the contents of several fields of the selected customer record.
> `stxtfld` | SDF | Displays the Comments field in `vcust2` in a Cut/Copy/Paste editor.

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