cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Flexible Programming Model sortOrder ignored by macros Table

Georgi
Explorer
0 Likes
263

Hello everyone,

I have a FPM project with first view containing macros Filterbar und Table.

The table displays the data, but ignores the CDS Annotation SortOrder from the PresentationVarian:

.presentationVariant: [{
qualifier: 'DefaultSorter',
sortOrder: [{ by: 'ManufacturingOrder', direction: #DESC }],
visualizations: [{type: #AS_LINEITEM }]
}]

I even added the property to the manifest file:

"defaultTemplateAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant#DefaultSorter",

I can see in the oData metadata the annotation is present.

I am currently using the 1.120.0 version, but the same result is with 1.141.3

Is there any additional property expected by the macros table? In the API Dokumentation it is written :
Usually, a LineItem, PresentationVariant, or SelectionPresentationVariant annotation is expected, but the Table building block can also be used to display an EntitySet.
If a PresentationVariant is specified, then it must have UI.LineItem as the first property of the Visualizations.

 

Thanks for you help!

@Navin_Krishnan 

 

Accepted Solutions (0)

Answers (0)