Taking the following JS, how can I apply a default filter to this when the view is created?
Code:
actionSelectRecord: function () {[INDENT]this.notify('Loading...'); var viewName = this.getMetadata().get('clientDefs.Record.modalVie ws.select') || 'views/modals/select-records'; this.createView('dialog', viewName, {[/INDENT][INDENT=2]scope: 'Record', createButton: false, forceSelectAllAttributes: true, // WHAT CAN I PUT HERE TO ENABLE FILTERING OF "RECORD" ENTITIES?[/INDENT][INDENT]}, function (view) {[/INDENT][INDENT=2]view.render(); this.notify(false); this.listenToOnce(view, 'select', function (model) {[/INDENT][INDENT=3]view.close(); this.selectRecord(model);[/INDENT][INDENT=2]}, this);[/INDENT][INDENT]}.bind(this));[/INDENT] },
Comment