cancel
Showing results for 
Search instead for 
Did you mean: 

Searchfield behaviour

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

scott_stefanich
Active Participant
0 Kudos

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.

Qualiture
Active Contributor
0 Kudos

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