SAPUI5: View vs. Page vs. Fragment vs. Dialog (+ 9 More)

SAPUI5: View vs. Page vs. Fragment vs. Dialog (+ More)

This is about SAPUI5 main container controls. You’ll learn: What each main container control is, such as shell, app, split app, view, page, semantic page, fragment, dialog When, where, and how to use each main container control So if you want to know the differences between these container controls and how they work together, then … Read more

17 SAPUI5 Best Practices (+ Examples)

17 SAPUI5 Best Practices (+ Examples)

These are SAPUI5 best practices. You’ll learn: What you should do in SAPUI5 What you shouldn’t do in SAPUI5 If you want your application to stay nice and clean and to do other developers a favor, then this article is for you. Let’s get started! #1 Create Keys for CRUD Statements If you do a … Read more

SAPUI5: How to Get a Model in onInit in a Controller?

SAPUI5: How to Get a Model in onInit in a Controller?

This is about how to get a model in the onInit method of a controller in SAPUI5. The model can’t be acquired by this.getView().getModel() in the onInit method—the return value is undefined. But there is another way: learn here how to get the model in a controller’s onInit method. Let’s get started! Why Does this.getView().getModel() … Read more