Symptom
Smart table is not sorted with the order defined in annotation PresentationVariant, property sortOrder.
For example, annotation is defined like this:
@UI.presentationVariant:{
sortOrder: [
{ by: 'Field_1' , direction: #ASC },
{ by: 'Field_2' , direction: #ASC },
{ by: 'Field_3' , direction: #ASC }
]}
However, if the table columns are displayed in "Field_3", "Field_2", "Field_1" order. Then all records are firstly sorted by "Field_3", after that "Field_2" and "Field_1".
Read more...
Environment
- SAPUI5
- UI5 Fiori Element apps
Keywords
SmartTable, Smart Table, cds view, sorting issue, fiori elements, annotation restriction, lineitem annotation, presentationvariant annotation , KBA , CA-UI5-ST , Fiori elements v2 , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview