You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started: AI Resources for Oracle Cloud HCM – Go Here

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

Business Rules - Validation Rule on Local and Global Transfer using Javascript

Summary:

We have requirement to validate the Local and Global Transfer - Action Date is Sunday or not, and throw an error message if the day is not Sunday. Need help to review the Javascript written to achieve this functionality.

Content (please ensure you mask any confidential information):

To achieve this requirement , I wrote the below scripts through Use Advanced Expressions, both of them are throwing the error message for all the days.

Script A:

/* eslint-disable dot-notation */
define([], () => {
'use strict';

/**

  • Pay period start date should always be on Sunday.
  • @param {object} context
  • @
    */
    function runCondition(context) {
    const { $componentContext, $fields, $modules, $user} = context;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!