Skip to Content
1
Aug 10, 2021 at 10:02 AM

SAP List Report - Hide & Disable Columns using UI Annotations

2939 Views

Hi Experts,

I am working on SAP Fiori Element List Report app with Grid Table that uses an OData v2 service. We have column personalization button on the table. Currently the line item fields mentioned in UI.Annotations renders the default view and rest of the fields moved to the personalization button. We have a requirements as below

  1. We need to hide one field from the column personalization but it should be available for the filters. We have tried UI.Hidden but it didn’t worked.
<Annotation Term="UI.LineItem">
  <Collection>
	<Record Type="UI.DataField">
		<PropertyValue Property="Value" Path="field1"/>
		<Annotation Term="UI.Hidden" Bool="true"/>
	</Record>
  </Collection>
</Annotation>

2. We have to make couple fields(columns) has mandatory to display in table all the time, so how we can restrict the user to unselect those fields from the column personalization.

Please someone suggest how to achieve this.

SAP UI5 version: 1.71.29

Please do let me know, if you need any more details.

Regards,

Sai Nithesh