cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Smart Table column always visible

0 Kudos

I want to keep chosen columns in smart table always open (always selected). In settings there is an option to select columns to be visible in the table. I would like to prevent from uncheck some columns.

I see there is already such question https://answers.sap.com/questions/13163889/smart-table-prevent-selection-of-a-column.html# to set @UI.lineItem.exclude: true however I am not sure how to add this exception for annotation XML file for example with Annotation Modeler

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member656694
Participant
0 Kudos

Hello Korad,

You shall use "ignoreFromPersonalisation" and "requestAtLeastFields" properties of smart table to achieve the same.

https://sapui5.hana.ondemand.com/#/api/sap.ui.comp.smarttable.SmartTable%23controlProperties

0 Kudos

Hello rabin_dhas thank you for your quick answer. It will work, however "ignoreFromPersonalisation" prevents from displaying the columns at all and I want to keep them visible just I do not want the user to unselect it. I want to keep filtering, grouping and sorting option for those columns. If I set them visible with ignoreFromPersonalisation I get error "Uncaught (in promise) The provided 'ignoreColumnKeys' for 'columns' are inconsistent. No columns specified as ignored is allowed to be visible."