3 "name": "Pman.Dialog.BuilderAddTable",
6 "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderAddTable.bjs",
10 "show": "function (_self)\n{\n _this.grid.ds.load({});\n}"
16 "title": "Select columns to use",
18 "xtype": "LayoutDialog",
23 "xtype": "LayoutRegion",
28 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.ds.load({});\n }\n}"
34 "tableName": "Images",
41 "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.ds.load({});\n }\n}",
42 "cellclick": "function (_self, ri, ci , e)\n{\n if (ci > 1) {return; }\n \n var rec = this.ds.getAt(ri);\n var di = this.cm.getDataIndex(ci);\n rec.set(di, (rec.data[di] * 1) ? 0 : 1);\n rec.commit();\n \n \n \n}"
45 "autoExpandColumn": "desc",
52 "beforeload": "function (_self, options)\n{\n if (typeof(_this.data) == 'undefined') {\n return false;\n \n }\n options.params = options.params || {};\n options.params.table = _this.data.table;\n}",
53 "load": "function (_self, records, options)\n{\n // after load, if we have configuration already, overlay that \n if (typeof(this.data.cols) == 'undefined') {\n return;\n }\n \n \n \n \n}"
55 "*prop": "dataSource",
58 "|sortInfo": "{ field : 'filename', direction: 'ASC' }",
65 "|url": "baseURL + '/Builder/ERM.php'",
72 "totalProperty": "total",
73 "xtype": "JsonReader",
74 "|fields": "[\n { name: 'use', type: 'int'} , \n { name: 'use_ex', type: 'int'}, \n 'table', 'column', 'ctype', 'desc', 'columnshort'\n]",
86 "|click": "function()\n{\n \n}\n"
88 "cls": "x-btn-text-icon",
91 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
96 "|click": "function()\n{\n // Pman.genericDelete(_this, 'Images'); \n}\n "
98 "cls": "x-btn-text-icon",
101 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
102 "|xns": "Roo.Toolbar"
107 "*prop": "colModel[]",
111 "xtype": "ColumnModel",
112 "|renderer": "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n}",
116 "*prop": "colModel[]",
117 "dataIndex": "use_ex",
118 "header": "Display/Expand",
120 "xtype": "ColumnModel",
121 "|renderer": "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n \n }",
125 "*prop": "colModel[]",
126 "dataIndex": "table",
129 "xtype": "ColumnModel",
130 "|renderer": "function(v) { return String.format('{0}', v); }",
134 "*prop": "colModel[]",
135 "dataIndex": "column",
138 "xtype": "ColumnModel",
139 "|renderer": "function(v,x,r) { \n if (r.data.table == _this.data.table) {\n \n return String.format('{0}', v); \n }\n return String.format('.....{0}', r.data.columnshort); \n}",
143 "*prop": "colModel[]",
144 "dataIndex": "ctype",
147 "xtype": "ColumnModel",
148 "|renderer": "function(v) {\n\n return v;\n }",
152 "*prop": "colModel[]",
154 "header": "Description",
156 "xtype": "ColumnModel",
157 "|renderer": "function(v) { return String.format('{0}', v); }",
166 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
168 "*prop": "buttons[]",
175 "click": "function (_self, e)\n{\n var ret = Roo.apply({ cols : [], cols_ex: [] }, _this.data);\n \n _this.grid.ds.each(function(r) {\n \n if (r.data.use*1) {\n ret.cols.push(r.data);\n }\n if (r.data.use_ex*1) {\n ret.cols_ex.push( r.data.column );\n }\n\n });\n \n if (!ret.cols_ex.length) {\n Roo.MessageBox.alert(\"Error\", \"Select at least one Display/expand col\");\n return;\n }\n Roo.log(ret);\n _this.callback(ret);\n _this.dialog.hide();\n\n}"
177 "*prop": "buttons[]",