jonas.rausch
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
4 years ago
#18706
::
Hi Julia,
Since Ui5 Filters work on the Data Model of the corresponding Table, you can Filter any Table you want.
I´d say the easiest Example would be the sap.m.Table.
Unfortunately, the Filter Function needs to be added via script, there is no Simplifier Function for that yet.
The First thing you need to do:
create a new Filter: new sap.ui.model.Filter([key in model you want to filter(column)], [Filter function], [value you want to filter by])
Second: Apply the Filter to the Model:
[your model reference].filter([The new Filter]);
I hope this helps.