I am creating sap.m.ComboBox dynamically like below and returning Combo from controller.
var oComboBoxtest = oController.createCombo("oCountryComboId");
Now I need attach the selection change event when I select different value in ComBoBox tried below but its not working:
oComboBoxtest.attachChange(function(){oController.test()});
oComboBoxtest.attachSelectionChange(function(){oController.test()});
Getting below error:
Uncaught TypeError: Cannot read property 'call' of undefined