3 "name": "Pman.Tab.XtupleMetric",
4 "parent": "Pman.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 "beforeedit": "function (e)\n{\n var r = e.record.data.poitem_qty_received * 1;\n \n if(r > 0){\n Roo.MessageBox.alert(\"Error\", \"This item has been receipted\");\n return false;\n }\n \n var status = _this.form.findField('pohead_status').getValue();\n \n if(status == 'C'){\n Roo.MessageBox.alert(\"Error\", \"This PO has been closed\");\n return false;\n }\n \n \n}"
27 "autoExpandColumn": "metric_value",
30 "xtype": "EditorGrid",
35 "beforeload": "function (_self, o){\n o.params = o.params || {};\n \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]",
70 "emptyMsg": "No Metric found",
72 "xtype": "PagingToolbar",
76 "*prop": "colModel[]",
77 "dataIndex": "metric_id",
80 "xtype": "ColumnModel",
81 "|renderer": "function(v) { return String.format('{0}', v); }",
85 "*prop": "colModel[]",
86 "dataIndex": "metric_name",
89 "xtype": "ColumnModel",
90 "|renderer": "function(v) { return String.format('{0}', v); }",
94 "*prop": "colModel[]",
95 "dataIndex": "metric_value",
98 "xtype": "ColumnModel",
99 "|renderer": "function(v) { return String.format('{0}', v); }",
103 "*prop": "colModel[]",
104 "dataIndex": "metric_module",
107 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return String.format('{0}', v); }",