The requirement is to open files (PDF / Images) in a separate browser window rather than a new tab in the same window such that users can view the 2 windows side by side.
The solution provided in the issue above is to use exportDisplay without specifying the ExportFormat but this results in a new tab rather than new window.
/**
* In Desktop Client open a screen in new main window, in Web Client the same as new {@link#NEW_TAB} /
NEW_WINDOW,
/*
* In Web Client opens a screen as main
*/
ROOT
So, in the web client, you get a NEW_TAB when you say NEW_WINDOW. ROOT seems to give you an entire new browser window, so maybe that would work for you, but that probably will also re-create all the menus, etc.
Mario’s comment about fixing the ExportDisplay call allowed us to download to the browser instead of a file.
So, if you can figure out how to make any window open the way you want, then you can write the ExportDisplay in its controller and that should do it.