question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sap.m.TablePersoDialog

See original GitHub issue

OpenUI5 version: 1.52.9 Browser/version (+device/version): Chrome Any other tested browsers/devices(OK/FAIL): None URL (minimal example if possible): None User/password (if required and possible - do not post any confidential information here): None Steps to reproduce the problem:

  1. Navigate to a page that uses Table Personalization.
  2. Navigate away from the application
  3. Reenter the same page with the Table Personalization

What is the expected result? That the page loads with out issue What happens instead? Since the introduction of Stable IDs in the sap.m.TablePersoDialog the content of this._oColumnItemTemplate does not get deregistered. This causes the applySettings of the ManagedObject to never be called and witch then causes an infinite loop. Any other information? (attach screenshot if possible) this._oColumnItemTemplate = new InputListItem(this.getId() + "-li", { label: "{Personalization>text}", content: new sap.m.CheckBox(this.getId() + "-cb", { selected: "{Personalization>visible}", select: this._fnUpdateCheckBoxes }) }).addStyleClass("sapMPersoDialogLI");

Console Error: Uncaught (in promise) Error: Error: adding element with duplicate id ‘application-Account-zepapfull-component—worklist–table-PersoDialog-cb’ at constructor.u.registerElement (Core-dbg.js:2828) at f.g.register (Core-dbg.js:530) at ManagedObject-dbg.js:486 at f.constructor (ManagedObject-dbg.js:516) at f.constructor (Element-dbg.js:99) at f.constructor (Control-dbg.js:141) at new f (Metadata-dbg.js:346) at constructor.d.init (TablePersoDialog-dbg.js:150) at ManagedObject-dbg.js:497 at constructor (ManagedObject-dbg.js:516)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TheGreenToastercommented, Oct 1, 2018

Hey @pdominique,

My solution was to destroy the TablePersoDialog in the onExit hook of the view. Im not sure why the controller does not handle this automatically.

onExit: function(){
			this._oTPC.destroy();
		}

Sorry for not responding sooner but I hope this helps.

0reactions
pdominiquecommented, Oct 1, 2018

Hey @pdominique,

My solution was to destroy the TablePersoDialog in the onExit hook of the view. Im not sure why the controller does not handle this automatically.

onExit: function(){
			this._oTPC.destroy();
		}

Sorry for not responding sooner but I hope this helps.

Thanks, we’re in contact with SAP and this is what they are suggesting. I’ll try to explicitly call destroy and see if this fixes our issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sap.m.TablePersoDialog - API Reference - Demo Kit
Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.
Read more >
Table Personalization Dialog | SAP Fiori Design Guidelines
The table personalization dialog allows you to display and modify table settings. It is a UI pattern that defines the column order and ......
Read more >
TablePersoDialog is not working - SAP Community
Hi Experts, I am trying to implement table personalization by using the TablePersoDialog but i am not able to achieve it , and...
Read more >
Table Personalization - SAP Help Portal
The table personalization dialog sap.m.TablePersoDialog is a visual control that can be invoked within the context of the table personalization controller.
Read more >
sap.m.TablePersoDialog class throws an error (which is a bug ...
I am using TablePersoDialog for my application, which basically builds a column selection dialog for user. Everytime I click on the button ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found