In this step, you will test that a horse is younger than its dam; in other words, you will test whether the Dam Date of birth is greater than or equal to the horse’s Date of birth. Since dates of field type DT# are stored as an alphanumeric, YYYY-MM-DD, you can do a direct comparison of these dates.
To express the condition, you will use the GE (greater than or equal) comparison operator. The basic question that needs to be asked is:
Is Dam Date of birth GE Date of birth?
If this condition is true, display an error message; if the condition is false, continue to the next action.
Note that when you add this condition to the action diagram for Edit Horse, the context for both fields in the comparison will be RCD since they are both from the subfile record.
Type the details of the comparison as shown; namely, type RCD and Dam Date of birth for the first context and field of the condition, blank the Condition field, and type RCD and Date of birth for the second context and field.

Press Enter to return to the action diagram.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|