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

Grouping by Codelist Value in Fiori List report - Unnecessary duplication of title

kevin_ha
Associate
Associate
0 Likes
259

Hi, 

in our applications we decided that for code-lists we do not want to display the code on the UI. 

Now all my codes are annotated like this: 

planningStatus                @Common.Text           : planningStatus.descr
@Common.TextArrangement: #TextOnly;

In my app I am choosing to group against this planning status. But since I only have the description on my UI I can just group by this element then as specified in my UI service:

// Default grouping and sorting
PresentationVariant : {
GroupBy : [planningStatus.descr],
SortOrder : [{
Property : displayId,
Descending: true
}],
Visualizations: ['@UI.LineItem']
},

Now in the UI the title of the field is built like this: 

 
 
image-2024-08-13-13-16-21-247.png

It seems, that for the title, the "Common.Text*" Annotations are ignored. To remove the title in brackets, I must display the code and group against it. That means I cannot go with #TextOnly. 

Is there a way to solve this without using custom code in my fiori application to format/set the title of the control (https://sapui5.hana.ondemand.com/sdk/#/api/sap.m.GroupHeaderListItem)?


Accepted Solutions (0)

Answers (0)