Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Changing resource path.

$
0
0

Hello everyone,

 

I m building a small project using Open UI5 and I m having some issues with file structure.

 

The structure is like this.

 

<project>/library/open_ui5/sap-ui-core.js

 

The below works

 

<project>/library/open_ui5/<app_js>/xyz.view.js

 

But I want to have something like this.

 

<project>/js/<app_js>/xyz.view.js

 

Following is the code so far.

 

index.html

<script id='sap-ui-bootstrap'

        src='{$app_url}library/open_sap_ui5/sap-ui-core.js' 

        data-sap-ui-theme='sap_goldreflection' 

        data-sap-ui-libs='sap.ui.commons,sap.ui.table'></script>

 

index.js

var view = sap.ui.view({id:"id_tracker.main", viewName:"tracker.main", type:sap.ui.core.mvc.ViewType.JS});

view.placeAt("content");

 

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>