Controlling which main tab is available in which application

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

The control regarding which tab is / can be displayed in which application (also for tabs defined through inheritance) is achieved through menu commands and activation add-ins scripts. Besides this, note that Pages, Editions and Tracking main tabs can be displayed only in Fred4.

MainTabPopup

In the <Menuset Name="Global"> in Ted4_TabItems.xml and Fred4_TabItems.xml, there are menu commands to load main tabs, that call the scripts, listed under CommandParameter. If you want to make some main tabs inaccessible to all users, remove them from the menu. Should you want to make them forbidden for some users, and available for others, set the permissions on the scripts. See also the notes related to the Start main tab.

hmtoggle_plus1Menu MainTabPopup

Start main tab

Under <l:ShellTabItem x:Name="StartMainTab" in Ted4_TabItems.xml and Fred4_TabItems.xml, there's a list of main tabs. If you want to make some main tabs inaccessible to all users, remove them from the list. Should you want to make them forbidden for some users, and available for others, set the permissions on the scripts.

See also the notes related to the MainTabPopup.

Opening some main tabs by default

If you want some main tabs to be opened by default in a given GN4 application, you can call them in the OnInitialize scripts in the given xxx.vb file, where xxx is Fred4, Ted4 or Shell.

hmtoggle_plus1OnInitialize script for Fred
hmtoggle_plus1OnInitialize script for Ted