on 2021 Mar 23 6:55 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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."
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.