title: How to add combo box events in sap Ui5
body: <p>I am using combo box in a table having two fields as male and female and if i change that value to be stored in the JSON model data..How to use an event to it..</p>
  
  <p>The following is my code</p>
  
  <pre><code>oTable.addColumn(new sap.ui.table.Column( {
                   label: new sap.ui.commons.Label({text: "Gender"}),
                   template: new sap.ui.commons.ComboBox(
                                  {items: [new sap.ui.core.ListItem({text: "Female"}),
                                  new sap.ui.core.ListItem({text: "Male"})]}).bindProperty("value","gender"),
                   sortProperty: "gender",
                   filterProperty: "gender",                   
                   enabled : true,                     
                   change: function(oEvent){
                      sap.ui.getCore().byId("gender").setValue(oEvent.oSource.getSelectedItemId());
                   },
                   width: "75px"
                   }));
      function change(oEvent){
                   var bEnabled = oEvent.getParameter("enabled");
                   // modify the enabled property value in the model to reflect changes
                   oModel.setData({enabled: bEnabled}, true); // true means merge the data instead of replacing
        }; 
  </code></pre>
  
  <p>But it is not reflecting the values..please correct the code.</p>