How to set description field of main object with description field of related objects when select related object ?
(Please find screenshot in attach)
(Please find screenshot in attach)
return Dep.extend({ select: function (model) { debugger; this.$elementName.val(model.get('name')); this.$elementId.val(model.get('id')); [I]try { if (this.attributeList.length > 1 ) { cc = this.attributeList[1]; if (cc == "aTest2Name") { rr1 = this._parentView; rr1.model.set('description',model.get('description ')); } } } catch (e) { } debugger;[/I] if (this.mode === 'search') { this.searchData.idValue = model.get('id'); this.searchData.nameValue = model.get('name'); } this.trigger('change'); },
Comment