Skip to Content
avatar image
Former Member

Issue with SAPUI5 app output in SAP Web IDE

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>
 

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 10, 2017 at 09:59 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded