on 11-02-2013 8:09 AM
My HAN version on cloud share
SAP HANA Developer Edition SPS6
my hteml code
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>SAP HANA Native Development Workshop - Hello World</title>
<script id="sap-ui-bootstrap" type="text/javascript">
src="/sap/ui5/1/resources/sap-ui-core.js"
data-sap-ui-libs="sap.ui.ux3,sap.ui.commons"
data-sap-ui-theme="sap_goldreflection">
</script>
<script type="text/javascript">
var mybutton = new sap.ui.commons.Button("btn");
mybutton.setText("Hello World");
mybutton.attachpress(function(){$("#btn").fadeout();});
mybutton.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
Two things to be updated
1-->
<script id="sap-ui-bootstrap" type="text/javascript">
to
<script id="sap-ui-bootstrap" type="text/javascript"
no closing tag needed on that line
2 --> mybutton.attachpress to mybutton.attachPress
Here is the code I am able to run locally..
<!DOCTYPE HTML><html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>SAP HANA Native Development Workshop - Hello World</title>
<script id="sap-ui-bootstrap" type="text/javascript"
src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-theme="sap_goldreflection"
data-sap-ui-libs="sap.ui.commons"
>
</script>
<script type="text/javascript">
var mybutton = new sap.ui.commons.Button("btn");
mybutton.setText("Hello World");
mybutton.attachPress(function(){$("#btn").fadeout()});
mybutton.placeAt("content");
</script>
</head>
<body class="sapUiBody">
<div id="content"></div>
</body>
</html>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
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.