on 2022 Apr 21 9:37 AM
Hello SAPUI5 Smart Elements Team,
in my CAP sample project bookshop-demo I've added the following annotation to the Books entity:
annotate my.Books with @(UI : {
PresentationVariant : {
$Type : 'UI.PresentationVariantType',
MaxItems : 10,
SortOrder : [{
$Type : 'Common.SortOrderType',
Property : price,
Descending : true
}]
},
This annotation works fine for my Fiori Elements Application using the OData V2 Endpoint http://localhost:4004/v2/catalog. When I start the Application:
http://localhost:4004/webapp/fiori-latest.html?sap-language=en#Books-displayUI5latest
and start the search I get this result:
The only small issue there is that there is no indication that the list is ordered descending by Price. This indicator only appears if I set the sorting manually:
But the bigger issue occurs when using the Books entity in combination with a SmartTable. I already use the tableType "Table" as I found in the UI5 documentation for PresentationVariant that "SortOrder is not evaluated for the ResponsiveTable control.". When I now start http://localhost:4004/webapp/fiori-latest.html?sap-language=en#Books-displayUI5latestFreestyleApp I see this result:
On the positive side you recognise the sorting indicator. But unfortunately the values are not sorted correctly.
And as soon as a custom column is added to the table the sorting indicator disappears completely. Also the sorting is not executed (Sample also in http://localhost:4004/webapp/fiori-latest.html?sap-language=en#Books-displayUI5latestFreestyleApp):
Right now I'm using SAPUI5 1.100.2. But it would be great if also 1.96 can be fixed.
CU
Gregor
:
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.