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

I am writing a VBS business validation rule on Change Salary Page to validate the salary components

I am writing a VBS business validation advance rule on Change Salary redwood Page to validate the salary simple components. But the validation is not getting trigger, please let me know what i am doing wrong. The rule is to validate the Basic component in Simple component salary basis, the component value should not be 0 and validation should trigger if basic component value is 0.

Below is the code

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

/**
*
* @param {object} context
* @return {boolean}
*/
function runCondition(context) {
const { $componentContext, $fields, $modules, $user, $initialValue } = context;
const ComponentSimple = $fields.compensationSalaries.salarySimpleComponents.$initialValue().items;

const Testing1 = $fields.compensationSalaries.salarySimpleComponents.ComponentName.$value();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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