Update global Model from controllers in SAPUI5

310 views Asked by At

Is possible update the global model of the project in SAPUI5 from one of my controllers? I have some views with their respective controllers and I need to update the global model from some of this controllers.

Is possible?

Thank you.

1

There are 1 answers

6
Swadhin On BEST ANSWER

Yes. The below code from your controller should give you reference to global model

this.getOwnerComponent().getModel("modelName")