on 08-30-2018 12:57 PM
Hi Experts.
I have requirement to enable the save button when all fields are filled.
Thanks in advance.
The first part, where you define the model, this should be in the init
when a field is updated you will need to call some function to check them all and then update the model accordingly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
here you should use the view model,
// View Model
var oViewModel = new JSONModel({});
this.getView().setModel(oViewModel, "viewModel");
this.getView().getModel("viewModel").setProperty("/bEdit", false);
when all the fields are complete
this.getView().getModel("viewModel").setProperty("/bEdit", true);
Then in the XML you can bind the edit property of the button to the bEdit parameter of the model
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.