Skip to Content
Nov 18, 2020 at 05:06 PM

CDS View: Hide a column from SmartTable but make it available in the table settings


Hello everyone,

I would like to remove a few columns from the initial display of a smarttable in an ALP Fiori Elements and make it available when the user clicks on the table Customize Settings.

For instance, a column in my CDS is defined as:

        @UI.lineItem: [{position:2 }] 
        @EndUserText.label: 'SSCC Number'
        @UI.selectionField: [{position:2 }]
        @Consumption.valueHelpDefinition: [{entity:  {element: 'id_sscc', name: 'Z_SSCC_VH' }}]

How can I achieve this?