3 "name": "Pman.Tab.XtupleMetric",
4 "parent": "Pman.Tab.Admin",
6 "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleMetric.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "metric",
23 "|render": "function() \n{\n _this.grid = this; \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
24 "afteredit": "function (e)\n{\n if(e.originalValue == e.value || !e.value.length){\n return false;\n }\n \n e.record.commit();\n}"
27 "autoExpandColumn": "metric_value",
30 "xtype": "EditorGrid",
35 "beforeload": "function (_self, o){\n o.params = o.params || {};\n \n var s = _this.searchBox.getValue();\n \n if(!s || !s.length){\n return;\n }\n \n o.params['search[name]'] = s;\n}\n",
36 "update": "function (_self, record, operation)\n{\n if (operation != Roo.data.Record.COMMIT) {\n return;\n }\n\n if (!record.data.metric_name.length || !record.data.metric_value.length) {\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/Metric',\n method : 'POST',\n params : record.data,\n success : function(res) {\n _this.grid.footer.onClick('refresh');\n }\n });\n \n}"
38 "*prop": "dataSource",
41 "|sortInfo": "{ field : 'metric_name', direction: 'ASC' }",
49 "|url": "baseURL + '/Xtuple/Roo/Metric.php'",
56 "totalProperty": "total",
57 "xtype": "JsonReader",
58 "|fields": "[\n {\n 'name': 'metric_id',\n 'type': 'int'\n },\n {\n 'name': 'metric_name',\n 'type': 'string'\n },\n {\n 'name': 'metric_value',\n 'type': 'string'\n },\n {\n 'name': 'metric_module',\n 'type': 'string'\n }\n]",
70 "specialkey": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}",
71 "render": "function (_self)\n{\n _this.searchBox = _self;\n}"
78 "click": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}"
82 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
87 "click": "function (_self, e)\n{\n _this.searchBox.setValue('');\n _this.grid.footer.onClick('first');\r\n}"
91 "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
95 "|xns": "Roo.Toolbar",
100 "|click": "function()\n{\n\n Pman.Dialog.XtupleSalesOrderNew.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
102 "cls": "x-btn-text-icon",
105 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
106 "|xns": "Roo.Toolbar"
113 "emptyMsg": "No Metric found",
115 "xtype": "PagingToolbar",
119 "*prop": "colModel[]",
120 "dataIndex": "metric_id",
123 "xtype": "ColumnModel",
124 "|renderer": "function(v) { return String.format('{0}', v); }",
128 "*prop": "colModel[]",
129 "dataIndex": "metric_name",
132 "xtype": "ColumnModel",
133 "|renderer": "function(v) { return String.format('{0}', v); }",
138 "xtype": "GridEditor",
144 "xtype": "TextField",
152 "*prop": "colModel[]",
153 "dataIndex": "metric_value",
156 "xtype": "ColumnModel",
157 "|renderer": "function(v) { return String.format('{0}', v); }",
162 "xtype": "GridEditor",
168 "xtype": "TextField",
176 "*prop": "colModel[]",
177 "dataIndex": "metric_module",
180 "xtype": "ColumnModel",
181 "|renderer": "function(v) { return String.format('{0}', v); }",
186 "xtype": "GridEditor",
192 "xtype": "TextField",