Hello Chetna,
you give the ID like this:
template: new sap.ui.commons.DropdownBox({
id : "sboxID",
searchHelpEnabled : true,
})
Try using createId()-method like this:
template: new sap.ui.commons.DropdownBox(this.createId("sboxID",{
searchHelpEnabled : true
})
This way, you can access your Dropdownbox via:
this.getView().byId("sboxID");
Regards,
Dominik