Skip to Content
0
Former Member
Feb 16, 2016 at 03:56 PM

Problem accessing /zexvw_mp/resources/sap-ui-version.json. Reason: Resource could not be found!

166 Views

Dear All,

I have created a z ui5 project where in i have written some code related to screen element "Simple Form" in view's createContent : function(oController) method/function.

In the index.html file, i have the below info.

<script src="resources/sap-ui-core.js"

id="sap-ui-bootstrap"

data-sap-ui-libs="sap.ui.commons"

data-sap-ui-theme="sap_bluecrystal">

</script>

<script>

sap.ui.localResources("zexvw_mp");

var view = sap.ui.view({id:"idpage11", viewName:"zexvw_mp.page1", type:sap.ui.core.mvc.ViewType.JS});

</script>

I get the error in above code(bold), which is trying to access the local resource.

Please see the attachment for details which shows in the debugger.

I have installed JDK 8, JRE 8, Eclipse Mars Java EE edition.

I have checked, there are no syntax errors related to the screen element which is coded in the View.

Any inputs on how to solve this, will be much appreciated.

Thanks, Deni

Attachments

ui5_view.jpg (267.9 kB)