Skip to Content
0
Former Member
Dec 05, 2014 at 01:20 PM

viewReplacements with JS views?

131 Views

Hello to everyone,

I am working on a SAPUI5 application, doing it by JS views.

I am trying to customize my application adding the following in my Component.js:

customizing : {

"sap.ui.viewReplacements":{

"view.sidebar.Worklist" : {

viewName : "view.sidebar.Sample",

type : "JS"

}

}

}

And it is not working, no views are replaced


I assume that view.sidebar.Worklist is the "standard" view and view.sidebar.Sample is my custom view.


All documentation examples has type "XML", but i want do it by JS views, because is the way that i am developing views. is it possible to do that in that way?