cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to remove fields in smart table from personalization sap ui5

dev3
Explorer
0 Likes
1,352

i am working on UI5 adaptation and trying to remove a field 'Elims' from personalization menu of smart table how to do that i have tried 

onBeforeRebindTableExtension:function(oTest){
   
 oTest.getSource().setIgnoreFromPersonalisation('ZZ1_Elims_PLT')
   
}
but getting error 
Property ignoredFields cannot be changed after the SmartTable with id mdm.cmd.product.maintain::sap.suite.ui.generic.template.ObjectPage.view.Details::C_Product--to_Valuation::com.sap.vocabularies.UI.v1.LineItem::Table is initialised

 

Accepted Solutions (1)

Accepted Solutions (1)

Senqi_Hu
Participant

Hi, you can try the following code

onBeforeRebindTableExtension: function (oEvent) {
    oEvent.getSource().deactivateColumns(['property1','property2']);
}
casualCoder
Participant
0 Likes
Hi @Senqi_Hu,
casualCoder
Participant
0 Likes
Hi @Senqi_Hu, could you give me some Help? I have similar requirement but this Function is not called. The Controller Extension itself is loaded correctly (Checked that with console.log() )
ManikS2
Discoverer
0 Likes
Hi @Senqi_Hu, any idea why this method is written in the onBeforeRebindTable and not in the other methods like init of view

Answers (0)