Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio

> ## Task list and short procedure

> To reach this point, you need to know how to do the following tasks:

> 1. Add a prebuilt SDO.

> 2. Link SDOs together and map their foreign fields.

> 3. Add a prebuilt SDV.

> 4. Link an SDV to an SDO.

> 5. Create and resize a button.

> 6. Enhance a button with a ToolTip, a Help ID, and an image.

> 7. Code a launch trigger for a button using the Section Editor.

> 8. Create and resize an OCX control.

> 9. Code navigation triggers for an OCX control using the Section Editor.

> The following short procedure outlines how to complete these tasks.

> | To build the Order section:

> 1. Add a prebuilt SDO, `dorder.w`, to the Order section.

> See the "Adding a SDO for orders" section to review this procedure.

> 2. Create a Data SmartLink from `dcust.w` to `dorder.w`.

> See Step 3 in the "Adding a SDO for orders" section to review this procedure.

> 3. Map the `Customer.CustNum` field to the `Order.CustNum` field.

> See Step 4 in the "Adding a SDO for orders" section to review this procedure.

> 4. Add a prebuilt SDO, `dordlne.w`, to the Order section.

> See the "Adding a SDO for order lines" section to review this procedure.

> 5. Create a Data SmartLink from `dorder.w` to `dordlne.w`.

> See Step 3 in the "Adding a SDO for order lines" section to review this procedure.

> 6. Map the `Order.Ordernum` field to the `OrderLine.Ordernum` field.

> See Step 5 in the "Adding a SDO for order lines" section to review this procedure.

> 7. Add a prebuilt SDV, `vorder.w`, to the Order Section.

> See the "Adding a SDV" section to review this procedure.

> 8. Create a Data SmartLink from `dorder.w` to `vorder.w`.

> See Step 3 in the "Adding a SDV" section to review this procedure.

> 9. Create an Update SmartLink from `vorder.w` to `dorder.w`.

> See Step 4 in the "Adding a SDV" section to review this procedure.

> 10. Add three buttons with the following properties:

> Object | Left | Height | Width | ToolTip | Help ID | Image
> --- | --- | --- | --- | --- | --- | ---
> BUTTON-3 | 14 | 2.38 | 10 | Place New Order | 3 |
>     crtord.jpg
> BUTTON-4 | 14 | 2.38 | 10 | Find Order | 4 |
>     findord.jpg
> BUTTON-5 | 14 | 2.38 | 10 | Maintain Order | 5 |
>     mainord.jpg

> See the "Creating and positioning the buttons" section and the "Adding ToolTips, help IDs, and images to the buttons" section to review this procedure.

> 11. Write `CHOOSE` event triggers for the buttons in the Section Editor.

> See the "Coding event triggers for the Order buttons" section to review this procedure.

> 12. Add and position two control frames, based on the Crescent Spin Control OCX.

> See the "Adding OCX controls" section to review this procedure.

> 13. Give the OCX control frames the following properties:

> Property | Value
> --- | ---
> Height | 1.52
> Width | 9.0
> Style | 3D Horizontal
> ArrowColor | dark blue

> See the "Changing the appearance of the OCX controls" section to review this procedure.

> 14. Create the following Text labels:

> Object | Label | Color
> --- | --- | ---
> CtrlFrame | Prev/Next | 1
> CtrlFrame-2 | First/Last | 1

> See Step 7 in the "Changing the appearance of the OCX controls" section to review this procedure.

> 15. Place a rectangle around each OCX control and its text label.

> See Step 8 in the "Changing the appearance of the OCX controls" section to review this procedure.

> 16. Add `OCX.SpinDown` and `OCX.SpinUp` triggers for the control frames.

> See the "Coding the Prev/Next spin box to fetch the previous record" section and the "Coding the First/Last spin box to fetch the first and last records" section to review this procedure.

> 17. Run and check your application.

> See the "Viewing the window" section to review this procedure.

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