Hello all, i encounter an problem when trying to bind items of to a ComboBox (https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.ui.commons.ComboBox.html) component.
At the moment, the process of binding items on the ComboBox component it's done like follows:
var itemTemplate = new sap.ui.core.ListItem(); // creating a ListItem object
itemTemplate .bindProperty("text", "........."); // bind for the "text" property a certain path from the model
var comboBox = new sap.ui.commons.ComboBox({}); // create the ComboBox
comboBox .bindItems("........",itemTemplate); // bind the items from a certain path, and provide as a template for the list items the // previously created one
Everything works as expected, except the fact that the following exception it's logged:
"A shared template must be marked with templateShareable:true in the binding info - "
While this seems suggestive, I still was not able to find when during binding should the "templateShareable" property set to "true". Did anyone else encountered this issue? Am I doing something wrong when binding the items of a combobox?
Thanks