Code:
var filters = {}; filters['account'] = {[INDENT]type: 'equals', field: 'accountId', value: this.accountId, data: { type: 'is', nameValue: this.accountName }[/INDENT] };
Code:
this.createView('dialog', viewName, {[INDENT]scope: 'Record', createButton: true, forceSelectAllAttributes: true, filters: filters }, 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]
Leave a comment: