Pman.Tab.XtupleReports.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 13:02:35 +0000 (21:02 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 13:02:35 +0000 (21:02 +0800)
Pman.Tab.XtupleReports.js

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

index 9e9acc3..454c408 100644 (file)
@@ -45,7 +45,7 @@
                                 {
                                     "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}",
-                                        "rowdblclick": "function (_self, rowIndex, e)\n{\n    var rec = this.ds.getAt(rowIndex);\n    new Pman.Download({\n        url : baseURL + '/Roo/Report',\n        method : 'GET',\n        params : {\n            _id : rec.data.report_id,\n            _download : 1\n        }\n    });\n    Roo.MessageBox.alert(\"Downloading\",\n    \n       \"Report template is downloading - use \" +\n           '<a href=\"http://sourceforge.net/projects/openrpt/files/openrpt/\">' + \n           \"report writer to edit this\" + \n           '</a>'\n       );\n           \n    \n    \n}"
+                                        "rowdblclick": "function (_self, rowIndex, e)\n{\n    var rec = this.ds.getAt(rowIndex);\n    new Pman.Download({\n        url : baseURL + '/Roo/Report/' + rec.data.report_name +'-' + report.data.id + '.rpt',\n        method : 'GET',\n        params : {\n            _id : rec.data.report_id,\n            _download : 1\n        }\n    });\n    Roo.MessageBox.alert(\"Downloading\",\n    \n       \"Report template is downloading - use \" +\n           '<a href=\"http://sourceforge.net/projects/openrpt/files/openrpt/\">' + \n           \"report writer to edit this\" + \n           '</a>'\n       );\n           \n    \n    \n}"
                                     },
                                     "*prop": "grid",
                                     "autoExpandColumn": "report_descrip",
index 889068d..44f5e2b 100644 (file)
@@ -55,7 +55,7 @@ Pman.Tab.XtupleReports = new Roo.XComponent({
                                 {
                                     var rec = this.ds.getAt(rowIndex);
                                     new Pman.Download({
-                                        url : baseURL + '/Roo/Report',
+                                        url : baseURL + '/Roo/Report/' + rec.data.report_name +'-' + report.data.id + '.rpt',
                                         method : 'GET',
                                         params : {
                                             _id : rec.data.report_id,