var oComboBox = this.getView().byId("locationType_id_combo");
oComboBox.bindItems("/LocationType", new sap.ui.core.ListItem({key: "{id}", text:"{name}"}));
var oComboBox = this.getView().byId("eventDay_id_combo");
var templateCombo = new sap.ui.core.ListItem({key: "{id}", text:"{title}"});
var oSorter = new Sorter({
path : "eventDate",
descending : true,
group : false
});
var oFilterComboBox = new sap.ui.model.Filter({
path: "event_id",
operator: sap.ui.model.FilterOperator.EQ,
value1: this.idData
});
var oFilterComboBoxTwo = new sap.ui.model.Filter({
path: "deletionUserId",
operator: sap.ui.model.FilterOperator.EQ,
value1: null
});
oComboBox.bindItems({
path: "/EventDay",
template: templateCombo,
filters: [oFilterComboBox, oFilterComboBoxTwo],
sorter: oSorter
});
oComboBox.setValue("Select your option")
oComboBox.setSelectedKey("id");
Tu opinión es importante para mi, ¿Te ha resultado útil este artículo?