One way to show or use a global alias in a GraphWorX64 display is to insert a process point for a tag that uses a global alias in its path; when you browse for and select the tag, edit its path to replace the part that should be resolved dynamically with the global alias. For example, this data source:
@Buildings.Administration.Floor4.Room403.Light08
Could become:
@Buildings.<#BuildingID#>.Floor4.Room403.Light08
When you go into runtime, you will see the default value of the Global Alias. However, the GAS enables you to dynamically resolve an alias during runtime and to simultaneously apply one alias on different scopes.
There are two main options for setting global aliasing themes or aliases in GraphWorX64:
Automatically set them as the display enters runtime.
Make use of the Pick dynamic to give the operator control over current resolution of global aliases.
To set a theme or global alias automatically when a GraphWorX64 display enters runtime, follow these steps:
In a GraphWorX64 display, click in the blank area of the display to show the ThisDisplay object's properties on the Properties tab.
Put the cursor in the Global Aliases property then click the ellipsis button. The Set Global Theme and Aliases dialog box appears. You can going to use this dialog box to establish the initial setting of the global theme and alias values for the runtime version of the display. For information about using this dialog box, refer to Set Global Theme and Aliases dialog box.
Click OK to close the Set Global Theme and Aliases dialog box.
You can use global aliases with pick action dynamics to set a state, change a value, load a different display, or perform any action where variable substitution allows you to generalize the action at runtime. As a result, an operator can set a global alias to a specific value with a click of a button.
Pick dynamic commands with which global aliases can be associated include:
Load Display command: Set the global aliases in a display as it loads when the Pick action is triggered. For more about this subject, refer to Commands for Buttons, Pick Actions, and Function Keys.
Set Global Aliases command: Set the specified global alias theme value in the currently open display or a specified object or symbol. For more about this subject, refer to Commands for Buttons, Pick Actions, and Function Keys.
Display tabs: Each tab can include a set of global aliases. For more about this subject, refer to Alias Actions.
See also: