cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori elements extending search filter

Noel_Hendrikx
Active Contributor
0 Kudos
159

Hi there,

I am using a fiori elements (+ extension api / v4 odata) and I have a table on the ObjectPage. This table is searchable and the search field is generated. I would like to extend this searchfield (change event) or table (delegate), but no matter what I do, it doesn't work. I have tried via a controller extension, manifest, overwriting functions (most cases not allowed).

My version 1.120.x uses technically a sap.ui.mdc.Table. Attaching or detaching events doesn't work either.

Why do I need this?
The search does not return records (or only from data type string). I'd like to add more filters, so the results will be more acurate by implementing a filterby.

I am wondering if this is possible?

Thanks in advance!

Noël

View Entire Topic
Hongjun_Qian
Product and Topic Expert
Product and Topic Expert

Will the 'Customer Filter' helps?

Refer to Flexible Programming Model Explorer.

Or, you can using Extension to create your own SmartFilterBar for filtering.

Noel_Hendrikx
Active Contributor
0 Kudos
Thanks! Will dive in your tip. It should be triggered when using the Search field. I am using RAP as well, so the ObjectPage is generated out of the box. I could enhance that, but it is a big change.
Noel_Hendrikx
Active Contributor
0 Kudos
The search url contains $search=. It will only search on one field (defined in annotation / metadata). I will have to adjust the url via a binding change somehow.
Noel_Hendrikx
Active Contributor
0 Kudos
The $search is only for one field. Trick is to make a concat version of 3 fields into 1 field and search for that field.