imports/vx/both/code/vxapp.js
/**
     * Generalized validation for import, conditionally adds a message
     * to the supplied messages array in place.
     *
     * @param {string} value Value to test.
     * @param {function} fn Validation function.
     * @param {number} index Index of row containing value.
     * @param {array} messages Array of messages.
     * @param {string} fieldIdKey i18n bundle key of field-identifier message.
     * @param {object} fieldIdVariables Variables to insert into field-identifier message.
     */
Generalized validation for import, conditionally adds a message
to the supplied messages array in place.

@param {string} value Value to test.
@param {function} fn Validation function.
@param {number} index Index of row containing value.
@param {array} messages Array of messages.
@param {string} fieldIdKey i18n bundle key of field-identifier message.
@param {object} fieldIdVariables Variables to insert into field-identifier message.
Generalized validation for import conditionally adds a message to the supplied messages array in place . @param { string } value Value to test . @param { function } fn Validation function . @param { number } index Index of row containing value . @param { array } messages Array of messages . @param { string } fieldIdKey i18n bundle key of field - identifier message . @param { object } fieldIdVariables Variables to insert into field - identifier message .
validateRule(value, fn, index, messages, fieldIdKey, fieldIdVariables) {
        const result = fn(value)
        if (result.success) {
            return true
        }
        VXApp.validateCreateMessage(result, index, messages, fieldIdKey, fieldIdVariables, value)
        return false
    }
validateRule ( value , fn , index , messages , fieldIdKey , fieldIdVariables ) { const result = fn ( value ) if ( result . success ) { return true } VXApp . validateCreateMessage ( result , index , messages , fieldIdKey , fieldIdVariables , value ) return false }
Generalized validation for import, conditionally adds a message
 to the supplied messages array in place.
Generalized validation for import conditionally adds a message to the supplied messages array in place .