on 11-18-2015 12:59 PM
Hi All,
Iam using Combo Box to display the items . items getting displayed , but "change" event is not getting triggered,
when i select the item in the combo box.Please help.
Code in XML view
<ComboBox id ="charProf" change="selectedChar"
items="{path: '/charProfileResults'}" >
<core:Item key="{}" text="{CLAS1}" />
</ComboBox>
Code in controller :
selectedChar:function(oEvent) {
debugger;
var selectedValue = oEvent.getSource().getValue();
}
Regards,
shaik
Hi Shaik,
Use 'selectionChange' event instead of change. Since, change event gets triggered only when the focus leaves input field or enter key is pressed.
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.ComboBox
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.