Search code examples
javascriptsapui5sap-fiori

SAPUI5 Table Items Duplicate IDs


I have a SAPUI5 application where you first choose a object and then a new table is build up which is showing some data to this selected object. I am creating list items with some input fields with unique ids. If a user goes back to select a new object, the table is built new the same way but has erros because it tries to create new ids which are already in use (duplicate ids) Is there a way in SAPUI5 to delete this ids or destroy the items? I tried it with table.destroyItems() and table.destroy() but i had no success. Did somebody of you already faced a problem like this?


Solution

  • I solved the problem. I am not using static IDs anymore. The parameter which i passed trough the IDs is now passing by Custom Data