on 08-10-2015 6:48 AM
Like in sap.m.input we will get the value by getValue().Similarly i have tried to get the selected item value from sap.m.select by
var oActivity= sap.ui.getCore().byId("ACTIVITY").getSelectedItem();
CAN ANYONE HELP ME IN THIS ISSUE?
this.getView().byId("ACTIVITY").getSelectedKey();
this.getView().byId("ACTIVITY").getSelectedItem().getText();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
var activity = new sap.m.Select("ACTIVITY", {
selectedKey : "{...............}",
change : function(oEvent){
var selectedItem = oEvent.getParameter("selectedItem");
if (selectedItem) {
var activity_text = selectedItem.getText();
var activity_Key = selectedItem.getKey();
}
}
});
Thanks,
Divya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.