Hello,
I want to include an autocomplete box in my SAPUI5 Application that uses an OData Service for retrieving data. The OData Service is linked to a calculation view on the HANA System.
The problem is that the autocomplete box does show entries but not all of them. It seems that only -for example- the top 100 entries are being read by the OData service.
These are my lines:
// Define Data Model (ODATA service) var oModelData = new sap.ui.model.odata.ODataModel("/services/odata/data.xsodata/", true);
//Create a AutoComplete control and bind the items aggregation
var oAutoComplete = new sap.ui.commons.AutoComplete({
tooltip: "Enter a name",
displaySecondaryValues: true,
items: {
path: "/DATA",
template: new sap.ui.core.ListItem({text: "{DESCRIPTION}", additionalText: "{ID}"})
}
});
// bind model to OData Service
oAutoComplete.setModel(oModelData);
//Define a custom filter
oAutoComplete.setFilterFunction(function(sValue, oItem){
return jQuery.sap.startsWithIgnoreCase(oItem.getText(), sValue) || jQuery.sap.startsWithIgnoreCase(oItem.getAdditionalText(), sValue);
});
Is it possible to retrieve all data stored in the table? Since the available data is very big (approximately 4000 entries) I wanted to use OData service instead of getting all data and store it in an array.
Thanks in advance for your help.
Kind regards,
Stefan