Previous Topic: Edit the Action DiagramNext Topic: Remove Scoring Record


Update Scoring Record

See the window examples shown earlier and familiarize yourself with the Update Scoring Record Web page. Most of the skills that we need to build this dialog have already been discussed, so the steps to complete this dialog are going to be more abbreviated than the steps for the other dialogs. See prior examples if you need help in accomplishing a particular step.

Follow these steps:

  1. Copy the Add Scoring Record dialog design to the Update Scoring Record dialog.
  2. Change the literal Add Scoring Record to Update Scoring Record.
  3. Change the literal Enter the following… to Please update the following… and move it between the Time Played and the Adjusted Gross Score.
  4. Add a new literal that states, Please Note that the Date and Time Played cannot be updated.
  5. Delete the literal (MMDDYY).
  6. Delete the literal (HHMM).
  7. In the Date Played field properties, un-check the Margin Box and make the field Read Only. Then add the MM/DD/YY Edit Pattern.
  8. In the Time Played field properties, un-check the Margin Box and make the field Read Only. Then add an HH:MM Edit Pattern.
  9. Change the add Button Text to update, remove the Click event ADD SCORING PB ADD CLICK, delete the ADD SCORING PB ADD CLICK event name from the Action Name: entry field and allow the Toolset to add a new click event for this push button. Make it the Default Push Button.
  10. Locate the new event handler in the action diagram. Copy all of the statements from the EVENT ACTION add scoring pb add click event handler into the new event handler. In the new event handler, change the COMMAND IS create statement to COMMAND IS update.
  11. Change the CLOSE Dialog Box ADD SCORING RECORD DB to CLOSE Dialog Box UPDATE SCORING RECORD DB.

    The completed event handler should look like the example:

    Update Scoring Record

  12. Save your model.