Get Started: AI Resources for Oracle Cloud HCM – Go Here
Progress with Redwood: Redwood 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;
Tagged:
0