Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

How to get selected value from sap.m.combox

$
0
0

Hi,

 

I am using sap.m.ComboBox in the following way:

 

 

 

var oItemTemplate = new sap.ui.core.Item({

"{key}",

"{text}"

 

});


var combobox = new sap.m.ComboBox("cmb1",{

 

items : [ {

"key" : "*",

"text" : "All Data"

 

"key" : "SAP",

"text" : "SAP"

 

"key" : "ITelO",

"text" : "ITelO"

 

} ],

template : oItemTemplate,

selectionChange : oController.Selection

});


Now want to fetch data on selectionChange event. Can someone help in fetching the value selected?


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>