4thsep Eclipse JSView Deployment
4thsep Eclipse JSView Deployment
sap.ui.jsview("ztest4.VIEW1", {
/** 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});
//Checkbox
var cbo = new sap.ui.commons.CheckBox({text:"I want to learn SAP
Ui5/fiori",checked:false});
//drop down box
//create an object for dropdown
var ddo = new sap.ui.commons.DropdownBox();
//create an object for list item which contains list of values
var lio = new sap.ui.core.ListItem({key:"IN",text:"India"});
ddo.addItem(lio);
//create an object for list item which contains list of values
var lio = new sap.ui.core.ListItem({key:"DE",text:"Germany"});
ddo.addItem(lio);
//Combobox
var cbo = new sap.ui.commons.ComboBox();
//create an object for list item which contains list of values
var lio = new sap.ui.core.ListItem({key:"IN",text:"India"});
cbo.addItem(lio);
//create an object for list item which contains list of values
var lio = new sap.ui.core.ListItem({key:"DE",text:"Germany"});
cbo.addItem(lio);
//Radio button Grop
var rbo = new sap.ui.commons.RadioButtonGroup();
var itmo = new sap.ui.core.Item({key:"IN",text:"India"});
rbo.addItem(itmo);
var itmo = new sap.ui.core.Item({key:"US",text:"USA"});
rbo.addItem(itmo);
return [aho,imageo,txvo,txfo,pwdo,tao,cbo,ddo,cbo,rbo];
//
}
});