Alias Actions

Aliasing is the ability to define a string (usually a short name) to represent another string (usually part or all of a tag name). An alias is a string that represents or describes an object or data point in a display. GraphWorX64 supports three different types of aliases:

Aliasing and Pick Actions

You can use alias commands with Pick Action dynamics to set states, change values, load different displays, or perform any action where variable substitution allows you to generalize the action at runtime. Clicking a button with a pick action dynamic, loading a display, or even clicking a display button can set an alias to a specific value.

 

The following Pick dynamic commands work with aliases:

One other pick command can use aliases as well:

Aliases are also useful with:

Aliases to be set can be specified directly in GraphWorX64 or can come from an external tab-delimited text file, such files can be exported from Excel, created in Notepad, or created using the Unified Data Manager .

 

To add an alias to a pick action:

 

The following procedure describes how use an alias in a pick action.

  1. Add a normal button to the display. For help doing this, refer to Buttons.

  2. Locate the Command property in the Dynamics tab.

  3. Select one of the following commands: Set Global Alias, Set Language Alias, or Set Local Alias.

Selecting Set Global Aliases as the Command Property of the Pick Dynamic

Select the pick action for aliases here.

  1. Locate the Command Parameters section just below the Command properties, and click in the property that sets the value of the alias. You can type the alias names and values in directly if you know them, or you can select one:

Local Alias Table

Create and assign local aliases here.

      • From File. When you save your local aliases out in the Edit Aliases dialog box you could save them as a CSV or TSV delimited file. Any delimited file can serve as the source of aliases provided it is in the correct format. This option allows you to select either Browse Files or Data Browser as options in the LocalAliasCommandData property. Use Browse Files to select a delimited file, or Data Browser to use Text Values or other sources for local aliases.

  1. Set the value and close the appropriate dialog box, then click the Save button.

To Set This Display or Display Tab Aliasing:

 

Aliases are important in assigning the properties of a Load Display pick action, which is the default pick action for a button. Load Display can take a global or local alias as a parameter that helps determine which display file is loaded, but is set at runtime by a user action (a pick action). You can also set default aliasing for the This Display object itself, as well as for Display Tabs which are similar to browser tabs. Each Display tab could launch a different display and therefore could support its own independent set of aliases.

  1. Click a blank area of the display to select the This Display object.

  2. Locate the Display Tabs section and expand it.

  3. For a single display tab set the Global Aliasing or Local Aliasing properties as desired.

  4. For multiple tabs, click the Tabs property's ellipsis button to open the Display Tabs dialog box shown below.

Display Tabs Dialog Box

Create display tabs in this dialog box and set display aliases.

  1. Click the Add button to create a new member of the Display Tabs family.

  2. Click in the FileName property and select the display file you wish to load when this Display tab is active in runtime.

  3. Add the text you wish to see in the Display Tab button in the Text property.

  4. Set the Global Aliases; or the LocalAliasCommandType and LocalCommandData properties, as desired.

  5. Repeat steps 5-8 to create the entire set of Display Tab objects; then click the OK button.

Return to Top

 

See also:

Pick Actions

Commands for Pick Actions and Function Keys

OPC Tags

Dynamics

Dynamics in the GraphWorX64 Interface