Hi,
I created a custom control with a ComboBox as association. When I want to fill it with data from the backend (see code below) it shows 100 blank values, while another ComboBox created outside of the custom control is filled without any issues. Does anybody know what the issue could be?
(Within the render function the ComboBox is added as an Item of a VBox)
here's the function:
onBeforeRendering: function () {
{...}
var oControl = this.getControlType();
oControl = this.getAssociation(oControl);
if (this.getControlType() === "ComboBox") {
var oItemTemp = new sap.ui.core.Item({key: '{lg_liid}', text: '{lg_name}'});
this.addDependent(oControl);
// oControl.bindItems('/MaterialSet', oItemTemp);
oControl.bindAggregation("items", {
path: "/MaterialSet",
template: oItemTemp
})
} else {
oControl.setValue(sValue);
}
oControl.setVisible(!sVisible);
},