Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Example: Validate Holiday Time Entry

Example: Validate Holiday Time Entry

This example shows you how to create a time entry validation that references different business objects .
The
Holiday
time entry code should only be used when workers enter time for holidays. You need to create a validation that prevents workers from entering
Holiday
time for non-holiday days.
This validation needs to reference report fields based on different business objects. Because the rule conditions on the validations must all reference fields on the same primary business object, you need to create a lookup related value calculated field to reference the field on the other business object.
  • Create a holiday calendar.
  • Create a time entry code called
    Holiday
    .
  • Security:
    • Set Up: Time Tracking
      domain in the Time Tracking functional area.
    • Custom Field Management
      domain in the System functional area.
  1. Create a lookup related value calculated field that references the
    Is Holiday
    report field from the Time Day business object.
    1. Access the
      Create Calculated Field
      task.
    2. As you complete the task, consider:
      Field
      Notes
      Field Name
      Time Day is Holiday
      Business Object
      Time Block
      Function
      Lookup Related Value
      Lookup Field
      Time Day for a Time Block
      Return Value
      Is Holiday
  2. Create the time entry validation.
    1. Access the
      Maintain Time Entry Validations
      report.
    2. Click
      New Validation
      , next to
      Critical
      .
    3. In the
      Description
      field, enter:
      Holiday Time Entry
      .
    4. Define the
      Rule Conditions
      .
      As you complete the task, consider:
      And/Or
      Source External Field or Condition Rule
      Relational Operator
      Comparison Type
      Comparison Value
      And
      Time Entry Code
      in the selection list
      Value specified in this filter
      Holiday
      And
      Time Day is Holiday
      equal to
      Value specified in this filter
      Leave the check box blank.
  3. Add a validation message.
    1. Access the
      Maintain Time Entry Validations
      report.
    2. Select
      Validation
      Configure Validation Message
      from the related actions menu of the
      Holiday Time Entry
      validation.
    3. As you complete the task, consider:
      Text/External Field
      Value
      Text
      "
      External Field
      Time Entry Code
      Text
      " can only be used for holidays. Select a different time entry code for the time block on
      External Field
      Formatted Calendar Date for a Time Block
When a worker attempts to enter time using the
Holiday
time entry code on a day that is not a holiday (example: 2014-10-27), Workday displays this error message:
"Holiday" can only be used for holidays. Select a different time entry code for the time block on 2014-10-27
.