Skip to Content
avatar image
Former Member

SAPUI5 MVC in MII 15.1

I am trying to follow the OpenUI5 Walkthrough in MII 15.1, but I keep running into problems. The first problem is that Step 2 (Bootstrap) did not work. I used the default bootstrap in MIII source (/XMII/JavaScript/bootstrap.js) instead and I could pass this step. The next problem was in Step 4 (Views). I get the error

Uncaught Error: resource sap/ui/demo/wt/view/App.view.xml could not be loaded from /sapui5/resources/sap/ui/demo/wt/view/App.view.xml. Check for 'file not found' or parse errors.

I have the files from the example, but the problem appears to be where the system is looking for the View. It is looking in /sapui5/resources/... and not in the current directory. Here is the index page:

<!DOCTYPE html>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta charset="utf-8">
		<SCRIPT type="text/javascript" 
				"sap.ui.demo.wt": "./"
			}' >
			sap.ui.getCore().attachInit(function () {
					viewName : "sap.ui.demo.wt.view.App"
	<body class="sapUiBody" id="content">

and here is the view:

<mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc">
   <Text text="Hello World"/>

I am trying to get sapui5 to find the View in the correct folder, however I have not had any luck. Any help would be appreciated. Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 20, 2017 at 04:57 PM

    You can try "/sapui5/resources/sap-ui-core.js" for your ui5 script src. I think the MII bootstrap created it's own script tag to load the ui5 libs and maybe that is hosing your resource roots definition.


    Add comment
    10|10000 characters needed characters exceeded