Hi Patrick,
I was able to make the tab container work without creating any duplicate id errors when adding new items after one or multiple items had been removed beforehand. Please change the following line of the tab container widget script as shown in the screenshot (you only need the line that is commented in):
Please also make sure not to invoke the removeItem method of the tab container in your script that is attached to itemClose event in the process designer or else duplicate id errors will arise again. As I have explained earlier, the population of the tab container’s items will be handled via the data source binding of your variable, i.e. removing the related entry from your collection variable is sufficient.
Please let me know if this works for you as well. We will also internally investigate further why the line that can be seen commented out in the above screenshot was needed in the first place and whether it’s safe to remove it permanently from our standard widget.
Kind regards,
Armin