lib/widgets/blocks.js
/** Create the variables as needed by mwater-expressions */
Create the variables as needed by mwater-expressions
Create the variables as needed by mwater - expressions
function createExprVariables(contextVar) {
    return contextVar.map(function (cv) {
        switch (cv.type) {
            case "row":
                return { id: cv.id, type: "id", name: { _base: "en", en: cv.name }, idTable: cv.table };
            case "rowset":
                return { id: cv.id, type: "boolean", name: { _base: "en", en: cv.name }, table: cv.table };
        }
        return { id: cv.id, type: cv.type, name: { _base: "en", en: cv.name } };
    });
}
function createExprVariables ( contextVar ) { return contextVar . map ( function ( cv ) { switch ( cv . type ) { case "row" : return { id : cv . id , type : "id" , name : { _base : "en" , en : cv . name } , idTable : cv . table } ; case "rowset" : return { id : cv . id , type : "boolean" , name : { _base : "en" , en : cv . name } , table : cv . table } ; } return { id : cv . id , type : cv . type , name : { _base : "en" , en : cv . name } } ; } ) ; }
Create the variables as needed by mwater-expressions
Create the variables as needed by mwater - expressions