Singleton Tabs/Perspectives

Whether it is for performance or business reasons, sometimes it doesn't make sense to have multiple copies of a page open at once. You can accomplish this through the use of Singleton Tabs or Perspectives, which are tabs that are considered unique on the desktop. If a menu action has a true 'singleton' attribute, then the desktop will ensure that only one of these tabs exists simultaneously. If the user tries to open another page copy, the existing one will be focused instead.

<ModuleUiMetaModel>
<WebInfo>
<WebAction name="ViewMyPanel" singleton="true">
<PanelOptions>
<PanelClass>MOD.MyPanel</PanelClass>
</PanelOptions>
</WebAction>
 
<WebAction name="ReactUISandbox" singleton="true">
<OneReactPage>
<ModulePath>PTA/ReactUISandbox</ModulePath>
<Properties>{"sampleConstructorProp":"sampleValue"}</Properties>
</OneReactPage>
</WebAction>
</WebInfo>
</ModuleUiMetaModel>

With the above configuration, only one copy of the ViewMyPanel/ReactUISandbox action can be opened simultaneously.