Navigation - 2 Tier

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.

images/download/attachments/6047801/2Tier_Skeleton_Project1.png

To configure the 2 Tier in the Designer

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.

    images/download/attachments/6047801/2Tier_First_Tier_Tabs_Customizer.png

  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.

      images/download/attachments/6047801/2Tier_Create_First_Tier_Tab.png

  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.

    images/download/attachments/6047801/2Tier_Duplicate_HMI_Screens_Tab.png

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

    images/download/attachments/6047801/2Tier_Change_2nd_Level_Tab_Name.png

  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.

    images/download/attachments/6047801/2Tier_Reporting_Customizer.png

  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.

    images/download/attachments/6047801/2Tier_Create_Second_Tier_Tab.png

  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.

      images/download/attachments/6047801/2Tier_-_Update_the_Visible_Binding_for_th_2nd_Level_Tab2.png

  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.

      images/download/attachments/6047801/2Tier_-_Expression_Binding_2.png

  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.

2nd Tier Tab - Report 1

images/download/attachments/6047801/2Tier_Report_1_with_Table_in_Client.png

2nd Tier Tab - Report 2

images/download/attachments/6047801/2Tier_Report_2_with_chart_in_Client3.png

Similar Topics ...