Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Extending JSView


I'm trying to create a BaseView class, and can't get it to work.


sap.ui.core.mvc.JSView.extend("view.BaseView", {  ....methods....});

and then the view itself:

MyView.js:"view.ViewBase");"view.MyView"); //also tried without this line

view.ViewBase.extend("view.MyView", { ....methods...});

This method works for BaseController class perfectly.

But for view extension I get "undefined is not a function".

I did lots of tries, also with sap.ui.jsview();

no luck.


Former Member
Not what you were looking for? View more on this topic or Ask a question