Hi all,
Do you know how to validate the fields when users click at Save button?
I've attached the picture where I mean for more understanding
Thank you in advanced.
Hi all,
Do you know how to validate the fields when users click at Save button?
I've attached the picture where I mean for more understanding
Thank you in advanced.
The button is "inline-save", the event is "saveClicked" and it is defined at clients/base/views/recordlist/recordlist.js.
So you may want to extend such js controller for your module and modify it as per your needs.
Regards
Thank a million André Lopes. Let me try to do it.
I've tried it already. recordlist.js is used for listing of each module.
I tried this one clients/base/views/subpanel-list/subpanel-list.js
But I don't know what event I need to use.
Please help me.
I've put my code below.
({
extendsFrom:'SubpanelListView',
initialize: function(options){
this._super('initialize', [options]);
this.context.on('button:save_button:click', this.do_check_case_topic, this); // Please help me to check this line
},
do_check_case_topic: function(event) {
console.log("In Check Save Event");
},
});