Hi All,
I have a binded combobox which have a list of values in it i want to set a value as a default value for the combobox how i can do it please put some light on it. my combo box is defined as under
oCB_OrderType = new sap.ui.commons.ComboBox("oCB_OrderType", { tooltip: 'Order Type', editable: true, width: '100%', selectedKey: "{AUART}", displaySecondaryValues : true, required: true, }); oCB_OrderType.setSelectedKey("ZSRK"); var oOT_Template = new sap.ui.core.ListItem(); oOT_Template.bindProperty("key", "Auart"); oOT_Template.bindProperty("text", "Bezei"); oOT_Template.bindProperty("additionalText", "Auart"); oCB_OrderType.bindItems("/E_TVAKTSet", oOT_Template);
Regards