function updateSS() {
        if(typeof formData.getSteadyTable() === 'undefined') {
            return;
        }

        var device = formData.getData().device;
        var steadyTable = formData.getSteadyTable();

        var rowNum = device.rows*device.cols;
        var rowHeaders = [];
        var rowKey = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        for(var i = 0; i<device.rows; i++) {
            for(var j = 0; j<device.cols; j++){
                rowHeaders.push(rowKey[i]+(j+1));
            }
        }

        var colNum = device.leds.length;
        var colHeaders = getLEDNames();

        //Update ssData object backing table
        var newData=[];
        for(var r = 0; r<rowNum; r++) {
            newData[r] = [];
            for(var c = 0; c < colNum; c++) {
                var deselected = formData.getData().device.deselected[r];
                if(typeof steadyTable.getDataAtCell(r,c) === 'undefined' || steadyTable.getDataAtCell(r,c) === null){
                    newData[r][c] = 0;
                }
                //If it is deselected overwrite the value with a zero
                else if(typeof deselected !== 'undefined' && deselected) {
                    newData[r][c] = 0;
                }
                else {
                    newData[r][c] = steadyTable.getDataAtCell(r, c);
                }
            }
        }
        steadyTable.updateSettings({
            minRows: rowNum,
            maxRows: rowNum,
            rowHeaders: rowHeaders,
            minCols:colNum,
            maxCols:colNum,
            colHeaders: colHeaders,
            cells: function (row, col, prop) {
                var cellProperties = {};
                if(formData.getData().device.deselected[row]) {
                    cellProperties.readOnly = true;
                }
                return cellProperties;
            }
        });

        //Loads the truncated or expanded data object
        //Also is weirdly required to cause the min/max row/col adjustment to enter into effect
        steadyTable.loadData(newData);
    }
//Updates the SteadyState input table to reflect the properties of the current device
Updates the SteadyState input table to reflect the properties of the current device
Updates the SteadyState input table to reflect the properties of the current device
function updateSS() {
        if(typeof formData.getSteadyTable() === 'undefined') {
            return;
        }
        var device = formData.getData().device;
        var steadyTable = formData.getSteadyTable();
        var rowNum = device.rows*device.cols;
        var rowHeaders = [];
        var rowKey = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        for(var i = 0; i<device.rows; i++) {
            for(var j = 0; j<device.cols; j++){
                rowHeaders.push(rowKey[i]+(j+1));
            }
        }
        var colNum = device.leds.length;
        var colHeaders = getLEDNames();
        var newData=[];
        for(var r = 0; r<rowNum; r++) {
            newData[r] = [];
            for(var c = 0; c < colNum; c++) {
                var deselected = formData.getData().device.deselected[r];
                if(typeof steadyTable.getDataAtCell(r,c) === 'undefined' || steadyTable.getDataAtCell(r,c) === null){
                    newData[r][c] = 0;
                }
                else if(typeof deselected !== 'undefined' && deselected) {
                    newData[r][c] = 0;
                }
                else {
                    newData[r][c] = steadyTable.getDataAtCell(r, c);
                }
            }
        }
        steadyTable.updateSettings({
            minRows: rowNum,
            maxRows: rowNum,
            rowHeaders: rowHeaders,
            minCols:colNum,
            maxCols:colNum,
            colHeaders: colHeaders,
            cells: function (row, col, prop) {
                var cellProperties = {};
                if(formData.getData().device.deselected[row]) {
                    cellProperties.readOnly = true;
                }
                return cellProperties;
            }
        });
        steadyTable.loadData(newData);
    }
function updateSS ( ) { if ( typeof formData . getSteadyTable ( ) === 'undefined' ) { return ; } var device = formData . getData ( ) . device ; var steadyTable = formData . getSteadyTable ( ) ; var rowNum = device . rows * device . cols ; var rowHeaders = [ ] ; var rowKey = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; for ( var i = 0 ; i < device . rows ; i ++ ) { for ( var j = 0 ; j < device . cols ; j ++ ) { rowHeaders . push ( rowKey [ i ] + ( j + 1 ) ) ; } } var colNum = device . leds . length ; var colHeaders = getLEDNames ( ) ; var newData = [ ] ; for ( var r = 0 ; r < rowNum ; r ++ ) { newData [ r ] = [ ] ; for ( var c = 0 ; c < colNum ; c ++ ) { var deselected = formData . getData ( ) . device . deselected [ r ] ; if ( typeof steadyTable . getDataAtCell ( r , c ) === 'undefined' || steadyTable . getDataAtCell ( r , c ) === null ) { newData [ r ] [ c ] = 0 ; } else if ( typeof deselected !== 'undefined' && deselected ) { newData [ r ] [ c ] = 0 ; } else { newData [ r ] [ c ] = steadyTable . getDataAtCell ( r , c ) ; } } } steadyTable . updateSettings ( { minRows : rowNum , maxRows : rowNum , rowHeaders : rowHeaders , minCols : colNum , maxCols : colNum , colHeaders : colHeaders , cells : function ( row , col , prop ) { var cellProperties = { } ; if ( formData . getData ( ) . device . deselected [ row ] ) { cellProperties . readOnly = true ; } return cellProperties ; } } ) ; steadyTable . loadData ( newData ) ; }
Updates the SteadyState input table to reflect the properties of the current device
Updates the SteadyState input table to reflect the properties of the current device
//Update ssData object backing table //If it is deselected overwrite the value with a zero //Loads the truncated or expanded data object //Also is weirdly required to cause the min/max row/col adjustment to enter into effect