Skip to end of metadata
Go to start of metadata

 

2 Tier Navigation is similar to the Tab Strip navigation strategy. It's good for small and regular size project structures where windows are grouped, and lets you organize your main windows into different sections making navigation easy for users.  It uses two levels of tabs to navigate around various areas of your project. Once you select a first tier tab, a different set of tabs appear in the second level to switch between different windows.  The 2 Tier navigation Project Template has a docked north window that contains tabs that are always open and a main window which fills the rest of the space.

When you first open the 2 Tier navigation project you'll notice a couple of things immediately -  the dual tier tabbed navigation structure that allows you to switch between different windows, and the skeleton project to help you get started designing the navigation structure in your project.  
 

A docked north window called Navigation contains tabs that allow you to switch between different sections in your project.

  1. To create first level tabs, go to the Project Browser, right click on the Tab Strip component (i.e., First Tier Tabs) and select the Customizers > Tab Strip Customizer.



     
  2. You'll notice that the Navigation Mode is disabled for the First Tier Tabs, and there are HMI Screens and Administration tabs that already exist as part of the skeleton project as shown in the screenshot below. 

    1. Click Add Tab to create a new First Tier Tab.  Enter a keyword for your Tab name. (i.e., Reporting) in the Window Name and Display Name fields. The keyword can be the same name for both fields.  (Note: a folder path is not required for First Tier Tabs).  

    2. Press OK



  3. To create a second level component, go to the Project Browser, select an existing second level tab (i.e., HMI Screens Tab), and duplicate it by pressing CTRL D.  



    In the Property Editor, change the duplicate Name (i.e., HMI Screens Tab 1) to reflect the second tier tab name (i.e. Reporting). 




  4. To create your second level tabs, go to the Project Browser, right click on the Tab Strip component for Reporting,  and select the Tab Strip Customizer.



  5. Notice that the Tab Strip Component provides automatic window navigation using the built-in 'Swap Windows' mode for second level tabs.
    Each second level tab that you create will point to a different main window.

    Main Windows already created

    This step assumes you already have your second tier main windows created in your Project Browser.

     

    1. Click Add Tab and select the Window Name from the dropdown list (i.e., Main Windows/Report 2).

    2. Enter the Display Name / Tab Name (i.e., Report 2).  

    3. Repeat this step for as many tabs that you want to create. 

    4. Press OK.





  6. Second Level Tabs have a Visible property that is bound to an expression based on the First Level Tabs.  This expression needs to be updated for the new second level tabs. 
    1. Select the Tab Strip component for the second tier (i.e., Reporting).
    2. Go to the Property Editor, select the Visible binding icon, and enter the First Level Tab keyword that you entered in step 2, (i.e., Reporting).  
    3. Press OK


       
  7. The 2 Tier skeleton project includes a default expression for navigating between windows in a project. If you're adding and/or modifying existing tabs, then you need to update the expression binding to fit your windows. 
    1. Select the First Tier Tab component, and click on the binding icon for the Selected Tab property, 
    2. Add the window path (i.e., Main Windows/Report 1 and Main Windows/Report 2) for the new tabs, and the second tier Tab Name (i.e., Reporting) for each window as show in the following example.   



  8. In the Designer, use the Preview Mode to switch between tabs to make sure the Second Level Tabs are visible.  

  9. Save and Publish your project. 
     
  10. Open your project in the Client, click on the various tabs to see your first and second tier tabs switch between the different windows.  
     


Navigation - 2 Tier

 

 

2nd Tier Tab - Report 1

2nd Tier Tab - Report 2

 

 

Related Topics ...

 

  • No labels

2 Comments

  1. Anonymous

    Why is it necessary to have the first tier tab selected tab switch based on the windows selected in the tier 2 tab if you can only access the tier 2 tab window selections by selecting tabs in the first tier?

    1. The expression on the First Tier of tabs is based on the CurrentWindow Tag (decided by the client). The main reason is that if you have other buttons to swap windows, the header tabs will continue to show the correct selection.