--- title: "Client Tags for Indirection" --- # Client Tags for Indirection > [Vision Client Tags](ignition-modules\vision\vision-client-tags\vision-client-tags.md) can be used as a variable across all windows to indirectly point to a set of Tags, such as an area of the plant. Suppose that a window has a Dropdown List component that allows a user to select different areas of the plant. If the drop-down is bidirectionally bound to a Client Tag's selected string value property, the user can change the drop-down's value, therefore resulting in the [indirect binding](ignition-modules\vision\binding-types-in-vision\indirect-tag-bindings-in-vision\indirect-tag-bindings-in-vision.md) throughout the project reflecting the change in the Client Tag. The Client Tag can be bound to a [custom property](../../working-with-vision-components/vision-component-customizer/vision-component-customizer.md#component-customizers) on a window's Root Container. This Custom property can be bound to the Client Tag. The components inside the window can have indirect bindings on their properties that leverage the Custom property on the window. Therefore, the components on the window will be dependent on the Client Tag. Client Tags are managed inside the Client, therefore each Client will be independent of other Clients. ## Client Tag Indirection Example In this example, we will set up Client Tags for indirection which can be shared between different windows in our project. 1. We need two windows and a way to navigate between them. If you don't already have a project that meets this criteria, create a new project using the **Vision Tab Nav** project template. ![" "](client-tags-for-indirection-new-project.png) 2. Add a Client Tag. In the Tag Browser, right click on **Vision Client Tags**, then choose **New Tag > Client Tag**. ![" "](client-tags-for-indirection-new-client-tag.png) 3. Name the Tag **Machine Number** and set the Value to **1**. ![" "](client-tags-for-indirection-client-tag-config.png) 4. Add a window to show data based on the Client Tag. Create a new window named **Machine Overview**. 5. Next, we'll add a Custom Property to the Root Container of the window. 1. In the Project Browser, select the **Root Container** for the Machine Overview window. 2. Right click on the desktop and choose **Customizers > Custom Properties**. 3. Click the **Add** ![" "](client-tags-for-indirection-add-icon.png) icon. 4. Enter **MachineNumberRef** as the name, and make sure the Type is **Integer**. Click **OK** to save the new custom property. ![" "](client-tags-for-indirection-custom-props.png) 6. Next we'll bind the custom property to the Client Tag. In the Project Browser, select the Root Container for the Machine Overview window. 1. In the Vision Property Editor, click on the **Binding** ![" "](client-tags-for-indirection-binding-icon.png) icon next to the **MachineNumberRef** custom property. 2. Choose the **Tag** binding type. 3. Select the **Machine Number** Vision Client Tag. 4. Click **OK** to save the binding. ![" "](client-tags-for-indirection-tag-binding.png) 7. Drag a **Label** component onto the window. Next we'll add an Expression binding to show the page title. 1. In the Vision Property Editor, click on the **Binding** ![" "](client-tags-for-indirection-binding-icon.png) icon next to the Text property. 2. Choose the **Expression** binding type. Enter the following expression: ``` "Machine "+{Root Container.MachineNumberRef}+" Overview" ``` ![" "](client-tags-for-indirection-expression-binding.png) 3. Click **OK** to save the binding. ![" "](client-tags-for-indirection-label-binding-result.png) 8. Next we'll set up an LED Display component for the value. 1. Drag an **LED Display** component onto the window. 2. Click on the **Binding** ![" "](client-tags-for-indirection-binding-icon.png) icon next to the **Value** property. 3. Select the **Indirect Tag** binding type. 4. Click on the **Tag** ![" "](client-tags-for-indirection-tag-icon.png) icon. Navigate to a Tag you want to use. We used the **Sine1** tag from the simulator. 5. Click **OK** to save the Tag path. ![" "](client-tags-for-indirection-indirect-binding.png) 6. Next, click the **Insert Property Value** ![" "](client-tags-for-indirection-property-icon.png) icon. 7. Choose the **MachineNumberRef** property from the root container. Click **OK**. ![" "](client-tags-for-indirection-indirect-binding-2.png) 8. In the Indirect Tag Path field, delete the "1" before the {1}. ![" "](client-tags-for-indirection-indirect-path.png) 9. Click **OK** to save the binding. 10. **Save** your project. 9. Next we'll make a details screen so we can switch between the two. In the Project Browser, right-click on the **Machine Overview** window and select Duplicate. ![" "](client-tags-for-indirection-duplicate.png) 10. **Rename** the copy as "Machine Details." 11. On the Machine Details window, select the **Label** component. 12. Click on the **Binding** ![" "](client-tags-for-indirection-binding-icon.png) icon next to the **Text** property. Change the word **"Overview"** to **"Details."** Edit the Expression binding as follows: ``` "Machine "+{Root Container.MachineNumberRef}+" Details" ``` ![" "](client-tags-for-indirection-expression-binding-2.png) 13. On the LED Display, update the Indirect Tag binding on the **Value** property to point to the **Ramp** Tag instead of the Sine Tags. 1. Select a **Ramp** tag from the Tag selector and click **OK**. ![" "](client-tags-for-indirection-indirect-binding-3.png) 2. Click the Insert **Property Value** ![" "](client-tags-for-indirection-property-icon.png) icon. Choose the **MachineNumberRef** property from the root container and click **OK**. ![" "](client-tags-for-indirection-indirect-binding-4.png) 3. In the Indirect Tag Path field, delete the "1" before the {1}. Click **OK** to save the binding. ![" "](client-tags-for-indirection-indirect-path-2.png) 14. Next we'll add the two new windows to the Navigation. Open the Navigation window. 1. Right click on the **Tab Strip** component and select [Tab Strip Customizer](ignition-modules\vision\vision-windows\navigation-strategies-in-vision\navigation-tab-strip\navigation-tab-strip.md). ![" "](client-tags-for-indirection-tab-strip-customizer.png) 2. In the [Tab Strip Customizer](ignition-modules\vision\vision-windows\navigation-strategies-in-vision\navigation-tab-strip\navigation-tab-strip.md), click on the **Empty** tab. Change the Window name and the display name to **"Machine Overview."** 3. Click the **Add Tab** button. Change the Window name and the display name to "**Machine Details**." 4. Click **OK** to save the changes to the Tab Strip. ![" "](client-tags-for-indirection-tab-strip-customizer-2.png) 15. Add a way to change the Client Tag value in the Client. There are two ways to do this: 1. Drag a **Numeric Text Field** component onto the Navigation window, and then drag the **Machine Number** Client Tag onto the **Numeric Text Field** component. 2. If your Header doesn't have a background component, you can just simply drag the **Machine Number Tag** directly onto the window and select **Control > Numeric Text Field**. ![" "](client-tags-for-indirection-tab-strip-customizer-result.png) 16. **Save** the project. ### Testing Your Work Remember that the point of a Client Tag is to have different values across multiple Clients, so there is no way to test it in the Designer. To test the functionality of this example, do the following: 1. Open two Vision Clients. 2. In the first Client, change the Client Tag Value from "1" to "2" in the header. 3. Click between the Machine Overview and Machine Details screen. Notice that they are both showing the Tags for Machine 2. 4. Switch to the second Client. Notice that the Machine Overview and Machine Details screens still show the Tags for Machine 1.