on 01-12-2015 10:57 AM
Hello, Is it possible to make the searchfield as advanced as the column filter? https://sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/commons/demokit/SearchField.html The searchfield only search's/filter if i type in "a" i only get items that begin with "a" back, I can't do wildcards etc like I can in the standard filter on columns etc! Any ideas? Thanks
With enough time, effort, coffee, and code, anything is possible
I created a JS Bin sample which splits the Search Field query by asterisk into an array of strings, creates an array of filters for each string, then filters the model with the array of filters.
Like Robin said, you can do whatever you want with the passed query parameter in the SearchField's search event.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't quite understand... in the SearchField's search event, you can do whatever you want with the passed query parameter, such as check for wildcards in order to construct a filter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.