1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtupleMetric = new Roo.XComponent({
6 part : ["Xtuple","Metric"],
7 order : '900-Pman.Tab.XtupleMetric',
9 parent : 'Pman.Tab.Admin',
10 name : "unnamed module",
21 activate : function() {
24 _this.grid.footer.onClick('first');
41 if (_this.panel.active) {
42 this.footer.onClick('first');
45 beforeedit : function (e)
50 autoExpandColumn : 'metric_value',
57 beforeload : function (_self, o){
58 o.params = o.params || {};
60 var s = _this.searchBox.getValue();
66 o.params['search[name]'] = s;
70 sortInfo : { field : 'metric_name', direction: 'ASC' },
76 url : baseURL + '/Xtuple/Roo/Metric.php'
83 totalProperty : 'total',
90 'name': 'metric_name',
94 'name': 'metric_value',
98 'name': 'metric_module',
112 specialkey : function (_self, e)
114 _this.grid.footer.onClick('first');
116 render : function (_self)
118 _this.searchBox = _self;
126 click : function (_self, e)
128 _this.grid.footer.onClick('first');
132 icon : rootURL + '/Pman/templates/images/search.gif'
138 click : function (_self, e)
140 _this.searchBox.setValue('');
141 _this.grid.footer.onClick('first');
\r
145 icon : rootURL + '/Pman/templates/images/edit-clear.gif'
158 Pman.Dialog.XtupleSalesOrderNew.show( { id : 0 } , function() {
159 _this.grid.footer.onClick('first');
163 cls : 'x-btn-text-icon',
165 icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
170 xtype: 'PagingToolbar',
173 emptyMsg : "No Metric found",
178 xtype: 'ColumnModel',
180 dataIndex : 'metric_id',
183 renderer : function(v) { return String.format('{0}', v); }
186 xtype: 'ColumnModel',
188 dataIndex : 'metric_name',
191 renderer : function(v) { return String.format('{0}', v); }
194 xtype: 'ColumnModel',
196 dataIndex : 'metric_value',
199 renderer : function(v) { return String.format('{0}', v); }
202 xtype: 'ColumnModel',
204 dataIndex : 'metric_module',
207 renderer : function(v) { return String.format('{0}', v); }