Skip to Content
0
Former Member
Feb 21, 2014 at 11:03 AM

Remove WorksetItem of Shell and make it visible again

24 Views

Hello,

we use the SAPUI5 element 'shell'. After selecting a few things on the first tabs we create a new tab "results" and present the aggregation of the previous selection the user has made.

Now the user can go back to the first tab in order to start a new selection. Therefore we remove the "result" tab using this method:

oShell.removeWorksetItem("RESULT");

If the user makes a new selection and we want to add the result tab again we get an error that says:

Uncaught Error: Error: adding element with duplicate id 'RESULT'


We also tried to remove the WorksetItem using this method:

oShell.destroyWorksetItems("RESULT");


but it didnt't work, either.


My question would be. Is it possible to 'really' remove the WorksetItem or is it possible to hide it until another selection has been made?


Thanks in advance for your help.


Regards,

Stefan