Skip to Content
0

Issue with SAPUI5 app output in SAP Web IDE

Oct 10, 2017 at 09:39 AM

20

avatar image
Former Member

Hi there

I have developed my first SAP UI5 app in SAP Web IDE but output is not coming as expected . I have developed code as per OPEN SAP SAP UI5 course but it is not working .

I have provided code below.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>My First UI5</title>


<script 
 id="sap-ui-bootstrap"
 src="https://openui5.hana.ondemand.com/betaresources/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-rsourceroots={"opensap.myapp" : "./"}>
 </script>


<script>
sap.ui.getCore().attachInit(function (){
var oImage = new sap.m.Image({
src: "http://www.freedigitalphotos.net/images/previews/wifi-connection-shows-computer-transmission-and-access-100288161.jpg"
		}).placeAt("content");
		oImage.setHeight("400px");	
	});
</script>
</head>


<body class="sapUiBody" id="content">
</body>
</html>
 

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Vedaradhya Agrahar Oct 10, 2017 at 09:59 AM
0

Hi Ankit,

In the code, src url seems wrong. (In the first script tag)

try with

src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"


Regards,

Vedaradhya.

Share
10 |10000 characters needed characters left characters exceeded