Jmix 2.7.1, when opening views from the main menu,
jmix.tabmod.multiple-open (default value False)
is working in a way that if a user opens the same view from the menu, it closes the already opened view instance and opens the new instance instead.
When opening task views from My tasks, this behavior is not followed; one can open many copies of the same task.
I would like to somehow replicate the default behavior of tabbed mode views - only 1 instance of the same view, for the task views.
I played a bit and was able to make a service that maintains the list of opened task ids. When a task is opened, it adds the task id to the list, and when it is closed, it removes it from the list. With this, I can detect when the same task is being opened again and block that.
I would, however, like to use the platform mechanism if it exists (the same one from the main menu), where is it? And also to close the existing and open the new instance.
How to best achieve this?
Thanks