on 03-31-2015 6:43 PM
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.
Hi,
Use sap.ui.localResources("list") in your index.html
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you mention any value in the Resource roots? like below
<script src="resources/sap-ui-cachebuster/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m"
data-sap-ui-xx-bindingSyntax = "complex"
data-sap-ui-resourceroots = '{
"shoppingcart": "./shoppingcart",
"sap.demo.cart": "./"
}'
data-sap-ui-theme="sap_bluecrystal">
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.