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

Need help to understand the javascript function from vbcookbook

Received Response


Hi Experts

I want help to understand below javascript function which is used in Buffering data provider vbcookbook.

Here I'm unable to understand what is "value" i dont see any value being passed as an argument for this javascript fucntion but it is using within the code in if condition. What does value will hold ? its not assigned any value. Please help

    salaryInRangeValidator(record, disableRowEditExit) {

      return {

        getHint: () => "Salary has to be in job salary range",

        validate: (value) => {

          let jobRecord = record.jobObject.items[0];

          if (jobRecord.minSalary === undefined) {

            throw new Error(

              "cannot validate because range is not available yet"


          } else if (

Howdy, Stranger!

Log In

To view full details, sign in.


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