imports/vx/both/code/vxapp.js
/**
     * Generalized validation for import, conditionally mutates the array of messages to add a message.
     *
     * @param {object} result Result returned from 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.
     * @param {string} value Value responsible for the validation error.
     */
Generalized validation for import, conditionally mutates the array of messages to add a message.
@param {object} result Result returned from 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.
@param {string} value Value responsible for the validation error.
Generalized validation for import conditionally mutates the array of messages to add a message . @param { object } result Result returned from 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 . @param { string } value Value responsible for the validation error .
validateCreateMessage(result, index, messages, fieldIdKey, fieldIdVariables, value) {
        const message = {}
        message.index = index
        message.fieldIdKey = fieldIdKey
        message.fieldIdVariables = fieldIdVariables
        message.result = result
        message.value = value
        messages.push(message)
    }
validateCreateMessage ( result , index , messages , fieldIdKey , fieldIdVariables , value ) { const message = { } message . index = index message . fieldIdKey = fieldIdKey message . fieldIdVariables = fieldIdVariables message . result = result message . value = value messages . push ( message ) }
Generalized validation for import, conditionally mutates the array of messages to add a message.
Generalized validation for import conditionally mutates the array of messages to add a message .