on ‎2021 Feb 01 11:19 AM
Hi experts,
I want to add the Sort Order annotation to my value help for a Selection Field in my List Report app.
The required annotations under UI.PresentationVariant are SortOrder, RequestAtLeast and Visualizations.
I have used this successfully on the table to sort my rows by the ID field. But when adding these annotations for Selection Field value helps, the annotation for Visualizations->Item->AnnotationPath is empty. I am expecting @UI.LineItem.
I am using a SEGW OData project to expose my CDS view. Do I need to do anything to the GetEntitySet method for this entity?

Does anyone know how to make sorting work in value help lists for selection fields in a List Report Fiori Elements app?
Thanks in advance
Request clarification before answering.
Hello,
The workaround would be to redefine the get_entityset from the DPC_EXT and apply the sort.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The order of options in the value help is defined by the order in which the values are retrieved in the CDS view that provides the options for the value help. If your value help CDS view has a key and text you could drive the order by ensuring the key was correctly ordered based on what you wanted to see in the value help.
So for example if your key values were 1 and 2, the corresponding text for 1 should show before 2 in the value help. I can share an example of this if that would help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthew,
UI.PresentationVariant isn´t support on the value help table yet.
Best regards,
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response Thorsten. Is there any way to do this from the CDS view instead?
Hi matthew.kennedy2
SAP Fiori elements floorplans for OData V4 support the sorting via UI.PresentationVariant on a Value help since UI5 1.89 (see https://sapui5.hana.ondemand.com/#/topic/a5608eabcc184aee99e1a7d88b28816c)
SAP Fiori elements floorplans for OData V2 should support if from UI5 1.98 as well.
Best regards,
Thorsten
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.