Skip to Content
0
Apr 25, 2018 at 12:03 PM

How to get Combobox selected value and create a dynamic field based on that ?

164 Views

Hi Experts,

I have requirement where on selecting the dropdown value from the combobox i have create a lable and button dynamically.

Below is the code which i have used to get the selected value but its working

onSelect:function(){
var item = sap.ui.getCore().byId("combo");
console.log("you have selcted"+item.getSelection());
}

Can somebody help me how to get the selected values and generate the fileds dynamically ?

KR,

Anil