on 10-10-2017 10:39 AM
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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.