imports/vx/both/code/vxapp.js
/**
     * Return the index of the command column.
     *
     * @param {array} headerArray Array of columns of first row.
     * @param {array} messages Array of messages.
     * @param {string} fieldIdKey i18n bundle key of field-identifier message.
     */
Return the index of the command column.
@param {array} headerArray Array of columns of first row.
@param {array} messages Array of messages.
@param {string} fieldIdKey i18n bundle key of field-identifier message.
Return the index of the command column . @param { array } headerArray Array of columns of first row . @param { array } messages Array of messages . @param { string } fieldIdKey i18n bundle key of field - identifier message .
validateCommandColumn(headerArray, messages, fieldIdKey) {
        const commandColumnIndex = headerArray.indexOf("command")
        if (commandColumnIndex < 0) {
            const message = {}
            message.index = 0
            message.fieldIdKey = fieldIdKey
            message.fieldIdVariables = { path: "error" }
            message.result = { success : false, icon : "TRIANGLE", key : "common.invalid_header_path" }
            messages.push(message)
        }
        return commandColumnIndex
    }
validateCommandColumn ( headerArray , messages , fieldIdKey ) { const commandColumnIndex = headerArray . indexOf ( "command" ) if ( commandColumnIndex < 0 ) { const message = { } message . index = 0 message . fieldIdKey = fieldIdKey message . fieldIdVariables = { path : "error" } message . result = { success : false , icon : "TRIANGLE" , key : "common.invalid_header_path" } messages . push ( message ) } return commandColumnIndex }
Return the index of the command column.
Return the index of the command column .