Pman.Tab.XtupleReports.js
"items": [
{
"listeners": {
- "beforeload": "function (_self, options)\n{\n if (!_this.grid.selModel) {\n return false;\n }\n var sel = _this.grid.selModel.getSelected()\n if (!sel) {\n this.removeAll();\n return false;\n }\n options.params.report_name = sel.data.report_name;\n \n \n}"
+ "beforeload": "function (_self, options)\n{\n if (!_this.grid) {\n return false;\n } \n var sel = _this.grid.selModel.getSelected()\n if (!sel) {\n this.removeAll();\n return false;\n }\n options.params.report_name = sel.data.report_name;\n \n \n}"
},
"*prop": "dataSource",
"remoteSort": true,
listeners : {
beforeload : function (_self, options)
{
- if (!_this.grid.selModel) {
+ if (!_this.grid) {
return false;
- }
+ }
var sel = _this.grid.selModel.getSelected()
if (!sel) {
this.removeAll();