Skip to Content
Former Member
Mar 31, 2015 at 05:43 PM

Change viewName path on sap.ui.view()


Hello, I have the following question:

I am trying to create a view object, access a existent SAPUI5 view file and place it on the html.

When I try to make the object and fill the viewName field:

viewName: "list/someView"

Instead of accessing th someView.view.html, that is on the same folder (called 'list') that the main html file, it tries to find a someView file inside my resources folder. I've tried adding ../ to the start of the path but it still searches for "resources//list/someView" instead of finding "list/someView".

How can I tell the view constructor to stop searching inside the resources?

Thanks for all the help.