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

SAP Fiori UI5 Personalization Engine event attachStateChange not firing

JastinC1
Explorer
0 Likes
249

I'm trying to add a column selection in view settings for sap.m.table

i have the code below where i try to attach the Engine event so when column selected changed, the function is not firing.

All i'm getting is this error - "Log-dbg.js:497 2025-12-09 17:19:39.498800 A Change was not created successfully. Reason: - No Change handler registered for the Control and Change type"

May I know what am I missing?

onInit: function () {
   this.oMetadataHelperPrint = new MetadataHelper(aColumns);

   Engine.getInstance().register(oTable, {
      helper: this.oMetadataHelperPrint,
        controller: {
          Columns: new SelectionController({
             targetAggregation: "columns",
             control: oTable,
             persistenceIdentifier: "selection-columns"
          })
        }
  });

  Engine.getInstance().attachStateChange(this.handleStateChange, this);
},

handleStateChange: function (oEvt) {
  //logic placed here
}

 

Accepted Solutions (1)

Accepted Solutions (1)

HenrikeGrtecke
Product and Topic Expert
Product and Topic Expert

Hello,

Thank you for your question. Can you please check whether the following knowledge base article resolves your issue?

3411354 - P13n Engine doesn't work in sap.ui.table

Kind regards,
Henrike

JastinC1
Explorer
0 Likes
worked like a charm. thank you.

Answers (0)