Progress
Application Development
Environment — Getting Started


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:

  1. Add a prebuilt SDO, dorder.w, to the Order section.
  2. To review this procedure, see the "Adding a SmartDataObject For Orders" section.

  3. Create a Data SmartLink from dcust.w to dorder.w.
  4. To review this procedure, see Step 3 in the "Adding a SmartDataObject For Orders" section.

  5. Map the Customer.CustNum field to the Order.CustNum field.
  6. To review this procedure, see Step 4 in the "Adding a SmartDataObject For Orders" section.

  7. Add a prebuilt SDO, dordlne.w, to the Order section.
  8. To review this procedure, see the "Adding a SmartDataObject For Order Lines" section.

  9. Create a Data SmartLink from dorder.w to dordlne.w.
  10. To review this procedure, see Step 3 in the "Adding a SmartDataObject For Order Lines" section.

  11. Map the Order.Ordernum field to the OrderLine.Ordernum field.
  12. To review this procedure, see Step 5 in the "Adding a SmartDataObject For Order Lines" section.

  13. Add a prebuilt SDV, vorder.w, to the Order Section.
  14. To review this procedure, see the "Adding a SmartDataViewer" section.

  15. Create a Data SmartLink from dorder.w to vorder.w.
  16. To review this procedure, see Step 3 in the "Adding a SmartDataViewer" section.

  17. Create an Update SmartLink from vorder.w to dorder.w.
  18. To review this procedure, see Step 4 in the "Adding a SmartDataViewer" section.

  19. Add three buttons with the following properties:
  20. Object
    Column
    Row
    Height
    Width
    ToolTip
    Help ID
    Image
    BUTTON-3
    14
    7.92
    2.38
    10
    Place New Order
    3
    crtord.jpg 
    
    BUTTON-4
    14
    10.54
    2.38
    10
    Find Order
    4
    findord.jpg 
    
    BUTTON-5
    14
    13.15
    2.38
    10
    Maintain Order
    5
    mainord.jpg 
    

    To review this procedure, see "Creating and Positioning the Buttons" and "Adding ToolTips, Help IDs, and Images To the Buttons" in the "Detailed Customer Section Procedure" section.

  21. Use the Section Editor to write CHOOSE event triggers for the buttons.
  22. To review this procedure, see the "Coding Event Triggers For the Order Buttons" section.

  23. Add and position two control frames, based on the Crescent Spin Control OCX.
  24. To review this procedure, see the "Adding Object Component Extensions" section.

  25. Give the OCX control frames the following properties:
  26. Property
    Value
    Height
    1.52
    Width
    9.0
    Style
    3D Horizontal
    ArrowColor
    dark blue

    To review this procedure, see the "Changing the Appearance Of the OCX Controls" section.

  27. Create the following Text labels:
  28. Object
    Label
    Color
    CtrlFrame
    Prev/Next
    1
    CtrlFrame-2
    First/Last
    1

    To review this procedure, see Step 7 in the "Changing the Appearance Of the OCX Controls" section.

  29. Place a rectangle around each OCX control and its text label.
  30. To review this procedure, see Step 9 in the "Changing the Appearance Of the OCX Controls" section.

  31. Use the Section Editor to add OCX.SpinDown and OCX.SpinUp triggers for each control frames.
  32. To review this procedure, see the "Coding the Prev/Next Spin Box To Fetch the Previous Record" and "Coding the First/Last Spin Box To Fetch the First Record" sections.

  33. Run and check your application.
  34. To review this procedure, see the "Viewing the Window" section.


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