Skip to Content

Event not triggering for Combo Box

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 18, 2015 at 01:05 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.