Skip to Content
0
Oct 04, 2018 at 07:21 AM

Code Display Blank Page

272 Views Last edit May 24, 2020 at 11:18 AM 2 rev

Dear Members,

I am new to SAPUI5. The following code is not working on my Sap WebIDE. When I run the index.html it shows the blank page.

The Code is as under

Index.html

 <!DOCTYPE html >
  <!--Use the xml view from folder view -->
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
		<meta charset="UTF-8">
		<title>OpenSAP - Developing Web Apps with SAPUI5</title>
		
		<script
			id="sap-ui-bootstrap"
			src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
			data-sap-ui-theme="sap_bluecrystal"
			data-sap-ui-libs="sap.m"
			data-sap-ui-compatVersion="edge"
			data-sap-ui-preload="async"
			data-sap-ui-resourceroots='{
			"opensap.myapp": "./"
				}'>
		</script>
		
	<script>
		sap.ui.getCore().attachInit(function () {
			sap.ui.xmlview({
				viewName: "opensap.myapp.week1u21.view.App"
			}).placeAt("content");
		});
	</script>
</head>
<body class="sapUiBody" id="content">
</body>
</html>

App.view.xml

<mvc:View
	displayBlock="true"
	xmlns:mvc="sap.ui.core.mvc"
	xmlns="sap.m">
	<Carousel>
		<Pages>
		<Image 
		src="https://upload.wikimedia.org/wikipedia/commons/0/0e/GEO_Globe_10.jpg" 
		height="400px"/>
		<Image 
		src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Globe_Atlantic.svg" 
		height="400px"/>
		</Pages>
	</Carousel>
</mvc:View>

My Folder path in SAP WebIDE is as under

Please help me to find out the problem.

Attachments

path.jpg (19.0 kB)