Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3303

Attach event for dynamic created combo box

$
0
0

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




Viewing all articles
Browse latest Browse all 3303


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