imports/vx/client/code/vxapp.js
/**
     * Return the selected row IDs. If none are supplied, return the last row ID in the row array.
     *
     * @param {object} record Record to be updated.
     * @param {string} rowsPath JSON path to array of rows to be updated.
     * @param {string} rowId Name of a property that uniquely identifies row.
     * @param {array} selectedRowIds IDs of rows to be removed.
     * @return {array} Selected row IDs possibly defaulted.
     */
Return the selected row IDs. If none are supplied, return the last row ID in the row array.
@param {object} record Record to be updated.
@param {string} rowsPath JSON path to array of rows to be updated.
@param {string} rowId Name of a property that uniquely identifies row.
@param {array} selectedRowIds IDs of rows to be removed.
@return {array} Selected row IDs possibly defaulted.
Return the selected row IDs . If none are supplied return the last row ID in the row array . @param { object } record Record to be updated . @param { string } rowsPath JSON path to array of rows to be updated . @param { string } rowId Name of a property that uniquely identifies row . @param { array } selectedRowIds IDs of rows to be removed . @return { array } Selected row IDs possibly defaulted .
selectedRowIds(record, rowsPath, rowId, selectedRowIds) {
        const rows = get(record, rowsPath)
        if (!(rows && rows.length > 0)) {
            return
        }
        if (selectedRowIds.length === 0) {
            selectedRowIds.push(rows[rows.length - 1][rowId])
        }
        return selectedRowIds
    }
selectedRowIds ( record , rowsPath , rowId , selectedRowIds ) { const rows = get ( record , rowsPath ) if ( ! ( rows && rows . length > 0 ) ) { return } if ( selectedRowIds . length === 0 ) { selectedRowIds . push ( rows [ rows . length - 1 ] [ rowId ] ) } return selectedRowIds }
Return the selected row IDs.
Return the selected row IDs .