Roo.MessageBox.alert("Downloading",
"Report template is downloading - use " +
- '<a href="http://sourceforge.net/projects/openrpt/files/openrpt/">' +
+ '<a target="_new" href="http://sourceforge.net/projects/openrpt/files/openrpt/">' +
"report writer to edit this" +
'</a>'
);
},
rowdblclick : function (_self, rowIndex, e)
{
- 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>'
+ );
+
+
+
}
},
autoExpandColumn : 'Report loaddate',
if (!_this.grid) {
return false;
}
- var sel = _this.grid.selModel.getSelected()
+ var sel = _this.grid.selModel.getSelected();
if (!sel) {
this.removeAll();
return false;