Release 10.1A: OpenEdge Development:
Progress Dynamics Getting Started

> ## Editing your application objects

> You can customize the dynamic objects created by the Object Generator. You can change the look and feel of the objects and add additional functionality. This section describes how to open and edit dynamic objects in the AppBuilder.

> | To open and edit the dynamic objects in the Properties Window:

> 1. Choose File Open Object from the AppBuilder main window.

> 2. Select the dynamic Viewer, armcuviewv, then choose Open. The SmartDataViewer design window appears, looking something like the following:

> The layout of the viewer might differ slightly depending on your user preferences. The individual field labels are specified through the schema of the DynSports database. The schema also specified that the Comments field be displayed as an editor instead of a fill-in.

> 3. Move the Comments field to the bottom of the viewer.

> 4. Choose Window Dynamic Properties from the AppBuilder main window.

> The Dynamic Properties window lets you edit Repository-based attributes and events for master objects or object instances registered in the Repository, as shown:

> The fields at the top of the property sheet describe the object: the container in which the object exists, the object’s full name, the object’s class, and a list of any possible result codes defined in the system. Result codes are used to customize your application for different UI types, different user types, and similar categories. This tutorial does not cover result codes. The Attributes tab displays all the attributes for the selected object, although only some are updateable. The Events tab displays all allowable events for the current object. See OpenEdge Development: Progress Dynamics Basic Development for more information on using result codes, specific attributes, and events.

> Note: User-defined attributes stored in the Repository are not supported in static object property sheets. You can modify user-defined attributes only through this property sheet and the Repository Object Maintenance window.

> 5. Choose the Attributes tab, if necessary.

> 6. Change the value of the Scrollbar-Horizontal row to Yes. A mark in the first column indicates that the attributes value has been changed from its default value.

> 7. Change the value of the Scrollbar-Vertical row to Yes, if necessary, as shown:

> 8. Close the properties sheet. Your design window should now look something like this:

> Note: The scroll bars might not appear immediately after you apply the new attribute values. This is caused by stale information in the cache. You can refresh the cache by saving your changes, closing the design window, and then reopening it.

> Another automatic aspect of the framework is refiguring the minimum size needed for a dynamic viewer each time you save one. The framework trims excess space based on the position of the widgets in the viewer.

> 9. Delete the Login company field, by selecting it and pressing DELETE.

> 10. Resize the design window and arrange the fields as you like. If you wish, add rectangles from the Object Palette to organize the fields into groups. Leave space to add a dynamic Combo for the Sales Rep field. When you have finished arranging the layout of the Viewer, it should look something like this one:

> 11. Choose Save on the AppBuilder toolbar.

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