Hi,
I am using the SearchField to swiftly filter values in a large list. The list initially had 1023 entries and it worked fine. Now, the list has grown to 9963 entries and it has stopped working. Are there any SearchField limits? If yes, what are they?
Thanks!
Request clarification before answering.
The error message I get is: Only "String" values are supported for the FilterOperator: "Contains". It leads me to think that it might be related to the data and not the volume.
How can I force the binding to be of type string of my model data for a specific column?
Here is my present code:
// filter list binding
var list = this.getView().byId("myList");
var binding = list.getBinding("items");
binding.filter(myFilters, "Application");
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
thanks, we both had the same thought and I have now tested using a formatter. In fact, I replaced all the strings with "Test" and it results in the same error, i.e. it has nothing to do with the actual values and must be something with the size of the list. I will dig a bit further and keep the thread posted.
Hi Sergio,
thanks for your reply, here is the filter code, hope you find something fishy or can help me force the column to be of type string:
var aFilters = [];
var sQuery = oEvt.getSource().getValue();
if (sQuery && sQuery.length > 0) {
var filter = new Filter("someColumnName", sap.ui.model.FilterOperator.Contains, sQuery);
aFilters.push(filter);
}
// Update list binding with filter
var list = this.getView().byId("searchList");
var binding = list.getBinding("items");
binding.filter(aFilters, "Application");
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.