cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 p13n.popup error with MetadataHelper

kilian_22
Member
0 Kudos

Hi,

i want to implement the p13n.popup to personalize a table in a sap fiori app. Therefore i used the code in the documentary:

https://ui5.sap.com/#/entity/sap.m.p13n.Engine/sample/sap.m.sample.p13n.EngineGridTable/code/Engine....

But I get the following error at constructing the new MetadataHelper:

Does someone know this problem or implemented the p13n popup / engine successfull?

Regards Kilian

Marian_Zeis
Active Contributor
0 Kudos

So there error is at line "this.oMetadataHelper = new MetadataHelper([" ?
Or at line "Engine.getInstance().register(oTable, {" ?
Or where is the error exactly coming from?

Did you try to update the ui5 version to the latest patch?

danielszegedi
Newcomer
0 Kudos

Hi Kilian,
i also got this error and it is a little bit misleading and confusing. The solution is, to give the Table the sap.ui.fl:flexibility="sap/m/flexibility/EngineFlex" attribute. Don't forget to add the 'sap.ui.fl' namespace on top of the view.
You will face another error, when you try to implement this example: You have to give the VariantManagement control an ID, which is not done in the example, otherwise an error will occur, which moans about non stable IDs etc.

Regards Daniel

0 Kudos

Hi Mauson,

I'm trying the same error when I trying the Personalization on TreeTable. Did you get any fix for above issue?

Thanks,

Sanjay

Accepted Solutions (0)

Answers (2)

Answers (2)

72593028
Discoverer
0 Kudos

Dear Kilian,

Please use same Id for Table Id in View and for Personalization Popup like below.

From View

72593028_0-1708377043516.png

From Controller

72593028_1-1708377091158.png

 

Best Regards,

Thulasiram

 

0 Kudos

Hi Daniel,

Even I added an ID to VariantManagment control, it still got "A Change was not created successfully. Reason: - Generated ID attribute found - to offer flexibility a stable control ID is needed to assign the changes to, but for this control the ID was generated by SAPUI5 __xmlview3--idOrderLineItemTableVM error.

And I got another error "Connector (LrepConnector) failed call 'loadFlexData': Error Application startup continues without data from this storage. - "

Do you have any clue about those error?

Thanks,

Dorian