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"
37 "*prop": "dataSource",
40 "|sortInfo": "{ field : 'metric_name', direction: 'ASC' }",
48 "|url": "baseURL + '/Xtuple/Roo/Metric.php'",
55 "totalProperty": "total",
56 "xtype": "JsonReader",
57 "|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]",
69 "specialkey": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}",
70 "render": "function (_self)\n{\n _this.searchBox = _self;\n}"
77 "click": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}"
81 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
86 "click": "function (_self, e)\n{\n _this.searchBox.setValue('');\n _this.grid.footer.onClick('first');\r\n}"
90 "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
94 "|xns": "Roo.Toolbar",
99 "|click": "function()\n{\n\n Pman.Dialog.XtupleSalesOrderNew.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
101 "cls": "x-btn-text-icon",
104 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
105 "|xns": "Roo.Toolbar"
112 "emptyMsg": "No Metric found",
114 "xtype": "PagingToolbar",
118 "*prop": "colModel[]",
119 "dataIndex": "metric_id",
122 "xtype": "ColumnModel",
123 "|renderer": "function(v) { return String.format('{0}', v); }",
127 "*prop": "colModel[]",
128 "dataIndex": "metric_name",
131 "xtype": "ColumnModel",
132 "|renderer": "function(v) { return String.format('{0}', v); }",
137 "xtype": "GridEditor",
143 "xtype": "TextField",
151 "*prop": "colModel[]",
152 "dataIndex": "metric_value",
155 "xtype": "ColumnModel",
156 "|renderer": "function(v) { return String.format('{0}', v); }",
161 "xtype": "GridEditor",
167 "xtype": "TextField",
175 "*prop": "colModel[]",
176 "dataIndex": "metric_module",
179 "xtype": "ColumnModel",
180 "|renderer": "function(v) { return String.format('{0}', v); }",
185 "xtype": "GridEditor",
191 "xtype": "TextField",