cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Annotations: How to not display a field on the List Report Column but keep then on the OData?

6,079

Which CDS Annotation can I use to not display a field in the UI and keep then into the metadata?

I need the value of the field for business calculation, but I do not want to show the field on the List Report Column.

The @UI.hidden and @UI.lineItem.exclude annotations do not work for me, because that annotations remove the field of the metadata and I need to keep them on metadata.

I am using OData v2 with Fiori Elements List Report.

View Entire Topic
former_member657525
Participant

Hi josianni.schmitt ,

you can try annotating the field with

@ui.hidden: true so that it will not be displayed in List report and add @UI.presentationVariant.requestAtLeast: [ '<ur_field' ]

which will get your field in model for calculation.

hope it would solve your problem.

Regards,

Appu John

RaminS
Active Participant
0 Kudos

.