Pman.Tab.XtupleReports.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 12:33:37 +0000 (20:33 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 12:33:37 +0000 (20:33 +0800)
Pman.Tab.XtupleReports.js

Pman.Tab.XtupleReports.bjs
Pman.Tab.XtupleReports.js

index 9b63d4e..672de89 100644 (file)
                             "|xns": "Roo",
                             "items": [
                                 {
-                                    "*prop": "grid",
-                                    "xtype": "Grid",
-                                    "autoExpandColumn": "report_name",
-                                    "loadMask": true,
                                     "listeners": {
-                                        "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
+                                        "|render": "function() \n{\n    _this.vgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.vpanel.active) {\n       this.footer.onClick('first');\n    }\n}",
                                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
                                     },
+                                    "*prop": "grid",
+                                    "autoExpandColumn": "report_name",
+                                    "loadMask": true,
+                                    "xtype": "Grid",
                                     "|xns": "Roo.grid",
                                     "items": [
                                         {
index 285cf62..f2f7461 100644 (file)
@@ -238,14 +238,12 @@ Pman.Tab.XtupleReports = new Roo.XComponent({
                         grid : {
                             xtype: 'Grid',
                             xns: Roo.grid,
-                            autoExpandColumn : 'report_name',
-                            loadMask : true,
                             listeners : {
                                 render : function() 
                                 {
-                                    _this.grid = this; 
+                                    _this.vgrid = this; 
                                     //_this.dialog = Pman.Dialog.FILL_IN
-                                    if (_this.panel.active) {
+                                    if (_this.vpanel.active) {
                                        this.footer.onClick('first');
                                     }
                                 },
@@ -257,6 +255,8 @@ Pman.Tab.XtupleReports = new Roo.XComponent({
                                     }); 
                                 }
                             },
+                            autoExpandColumn : 'report_name',
+                            loadMask : true,
                             dataSource : {
                                 xtype: 'Store',
                                 xns: Roo.data,