Hi,
I have one enum field in quotes- currency
I am trying to get that field's onchange event. Both alerts not working. What is missing in my code? Please help.
Thanks.
My code:
Espo.define('Advanced:Views.Quote.Fields.Currency' , 'Views.Fields.Enum', function (Dep) {
return Dep.extend({
setup: function () {
Dep.prototype.setup.call(this);
this.events['click [data-action="selectProduct"]'] = this.actionSelectProduct;
this.on('change', function () {
alert('changed');
}, this);
},
actionSelectProduct: function () {
alert('actionSelectProduct');
}
});
});
I have one enum field in quotes- currency
I am trying to get that field's onchange event. Both alerts not working. What is missing in my code? Please help.
Thanks.
My code:
Espo.define('Advanced:Views.Quote.Fields.Currency' , 'Views.Fields.Enum', function (Dep) {
return Dep.extend({
setup: function () {
Dep.prototype.setup.call(this);
this.events['click [data-action="selectProduct"]'] = this.actionSelectProduct;
this.on('change', function () {
alert('changed');
}, this);
},
actionSelectProduct: function () {
alert('actionSelectProduct');
}
});
});
Comment