Hi,
I am using AutoComplete control where i populate it with data from an oData service
var control= new sap.ui.commons.AutoComplete({
displaySecondaryValues: true,
items: {
path: "/",
template: new sap.ui.core.ListItem({text:"{NAME}", key:"{HOSPITAL_ID}", additionalText:"{STATE}"})
}
});
This is my implementation in fragment and in on after rendering I want to bind a default value to it.How can I achieve this?
for e.g.:
In drop down box I can achieve this with the below code
_myController.dropDownBox.bindProperty("selectedKey","HOSPITAL_ID");
I tried with similar approaches for AutoComplete control but I cannot bind value to it..Anyone can suggest a possible solutions please?
Best Regards,
Amala Suganya