on 2023 May 08 8:14 AM
Hey colleagues,
Our team is developing a UI application with Fiori Element & Odata v4.
We have a requirement for adding Selection Field (Drop down filter) with hardcoded value. (e.g. To have a Status Filter with value in [New, In Progress, Failed])
Now we have the filter with <Annotation Term="UI.SelectionFields">, it works but we have the duplicated selection.
Our table has 21 results, and the status filter will have 21 values.

I have tried with Annotation ValueList & ValueListWithFixedValues, but it doesn't meet the requirement.
I've tried extension in manifest.json, with combobox in a fragment. I can get the combobox with fixed value. But my extended filter can't get attached to the original FE odata search.

Anyone can give me any advice?
Thanks,
Howard
Request clarification before answering.
Finally, I got the solution.
We implement the enum entity set in our backend OData server. And use that enum set as CollectionPath in valuList.
The TransactionStatus is the enum entity set.
<Annotations Target="sap.odata.ApiTransaction/Status"> <Annotation Term="Common.Label" String="{@i18n>recStatus}" /> <Annotation Term="Common.ValueList"> <Record Type="Common.ValueListType"> <PropertyValue Property="CollectionPath" String="TransactionStatus"/> <PropertyValue Property="Parameters"> <Collection> <Record Type="Common.ValueListParameterInOut"> <PropertyValue Property="LocalDataProperty" PropertyPath="Status" /> <PropertyValue Property="ValueListProperty" String="Value" /> </Record> </Collection> </PropertyValue> </Record> </Annotation> <Annotation Term="Common.ValueListWithFixedValues" Bool="true" /> </Annotations>It works fine. We got the filter as we expected.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 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.