- if (!_this.dialog) return;
- _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
- _this.grid.footer.onClick('first');
- });
+ var rec = this.ds.getAt(rowIndex);
+ new Pman.Download({
+ url : baseURL + '/Roo/Report/' + rec.data.report_name +'-' + rec.data.report_id + '.rpt',
+ method : 'GET',
+ params : {
+ _id : rec.data.report_id,
+ _download : 1
+ }
+ });
+ Roo.MessageBox.alert("Downloading",
+
+ "Report template is downloading - use " +
+ '<a target="_new" href="http://sourceforge.net/projects/openrpt/files/openrpt/">' +
+ "report writer to edit this" +
+ '</a>'
+ );
+
+
+