Professional Documents
Culture Documents
2nd Sep - 8.30pm - Jsview
2nd Sep - 8.30pm - Jsview
2nd Sep - 8.30pm - Jsview
index.html
//create object for screen element Text view
var txvo = new sap.ui.commons.TextView();
//call the required methods
txvo.setText("Welcome to UI5");
//place the object in the content
txvo.placeAt("content");
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-
ui-libs' if required -->
<script>
sap.ui.localResources("ztest4");
var view = sap.ui.view({id:"idVIEW11",
viewName:"ztest4.VIEW1", type:sap.ui.core.mvc.ViewType.JS});
view.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-
ui-libs' if required -->
<script>
sap.ui.localResources("ztest4");
var view = sap.ui.view({id:"idVIEW11",
viewName:"ztest4.VIEW1", type:sap.ui.core.mvc.ViewType.JS});
view.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
/** Is initially called once after the Controller has been instantiated. It
is the place where the UI is constructed.
* Since the Controller is given to this method, its event handlers can be
attached right away.
* @memberOf ztest4.VIEW1
*/
createContent : function(oController) {
//Application Header
//create an object for Application header screen element
aho.setDisplayWelcome(true);
aho.setUserName("Venkat");
//image
var imageo = new sap.ui.commons.Image({src:"sap.png"});
//imageo.setSrc("sap.png");
//Text view
var txvo = new sap.ui.commons.TextView({text:"Welcome to this training"});
//Text Filed
var txfo = new sap.ui.commons.TextField({value:"123"});
//Password
var pwdo = new sap.ui.commons.PasswordField({value:"abcd"});
//Text Area filed
var tao = new sap.ui.commons.TextArea({value:"please enter
hhhhhhhhhhhhhhh",rows:5});
return [aho,imageo,txvo,txfo,pwdo,tao];
//
}
});