# Find where a tag, screen or alarm is used

> See every display, dashboard, alarm, recipe, script and driver mapping that uses a tag, a display or an alarm, get a warning before deleting something in use, and check the project for broken references.

Product: eaxScada · Type: How-to guide · Editions: Starter, Pro, Enterprise
Source: https://eaxware.com/docs/eaxscada/how-to/find-where-used/
Status: migrated page, not yet verified against the current code.

## Goal

Before you change or delete a tag, a display or an alarm, you know everything that uses it: the displays and dashboards that show it or write it, the alarms that watch it, the recipes and scripts that read or write it, the driver mapping that produces it and the roles whose permissions cover it. You can also check the whole project for references to things that no longer exist.

"Where used" is in every edition, Free included.

## Before you start

- Sign in to the Studio. Any role can look up where something is used.
- You only see what you are allowed to read. A tag outside your read permissions, and an alarm that is not shown to your roles, are left out of every answer, as if they did not exist. Accounts, roles, groups and permission rules are shown to administrators only, and your own account to you.

## Find where a tag is used

1. Open **Drivers**, then **eaxTags**. In the list of tags, click **used** on the tag's row (in a narrow list it is in the row's **⋯** menu).
   You can also open the tag browser from any tag field (for example in an alarm definition), select the tag and click **Where used**.
2. The **Where used** panel lists, under **Used by**, each document that references the tag, with what it does with it:

   | Shown as | Meaning |
   |---|---|
   | shows | A display element or dashboard tile shows the value. |
   | writes | An operator action writes the tag: a button, a faceplate's command, a dashboard control, a recipe phase or a script. |
   | condition on | The tag decides a condition: visibility, enabling, a confirmation interlock. |
   | alarm on | An alarm watches the tag. |
   | recipe parameter | A recipe downloads a parameter to the tag. |
   | produces | A driver mapping publishes the tag, with its access (RO, RW, WO). |
   | grants | A role's permission rule covers the tag (administrators only). |

   **Defined by** names where the tag comes from: eaxTags or a driver mapping.
3. Click a document to open it: a display opens in the designer, an alarm in the alarm definitions, a script in eaxTags.

A reference marked **dynamic** is a path computed when the screen or script runs, for example `tag(prefix + '/PV')`. The cross-reference cannot know the exact tag, so it records the pattern (`*/PV`, `*` stands for the computed part) and lists it for every tag the pattern matches. Check these by hand.

## Find where a display is used

1. In the designer, open the **Displays** explorer.
2. Right-click the display and choose **Where used...**, or hover over it and click the fork icon.

The panel lists the displays and dashboards whose buttons open it, the project pages and docks that mount it, and, under **Uses**, every tag, alarm, display and component it references.

## Find where an alarm is used

1. Open **Alarms**, then **Definitions**, and select the alarm.
2. Click **Where used**.

The panel shows the tag the alarm watches, the roles it is shown to, and the alarm banners whose area filter includes it.

## See what a user can reach and what they changed

You need the **Administrator** role, or look at your own account.

1. Open **Security**, then **Users**.
2. Click the fork icon on the user's row.

The panel shows the user's roles and groups, then **Rights, as the permission engine evaluates them**: the tags the user may read and write, the alarms they are shown and the displays they may open. These lists are computed by the same permission checks the server uses for every request, not from the rules' text. **What this account changed** pages through the user's entries in the audit trail, newest first.

## Delete something that is in use

When you delete a tag (eaxTags), a display, a 3D scene or an alarm definition, the Studio first asks where it is used.

- If nothing uses it, you see the usual confirmation.
- If something uses it, a warning lists every referencing document. **Cancel** has the focus. Click **Delete anyway** to delete it: the references stay in place and become broken (they show no value or do nothing), and **Project health** lists them.

Click a document in the warning to open it instead; the delete is cancelled.

## Check the project for broken references

1. Open **Tools**, then **Project health**. The **System health** page has the same button.
2. Read the four counters and the lists below them:

   | Section | What it lists |
   |---|---|
   | Broken references | References to a tag that no source knows (the tag engine, eaxTags or the driver mappings), or to a display, component or page that does not exist. |
   | Dead alarms | Alarms on a tag that does not exist: they can never trip. |
   | Unused tags | Tags the project configures (eaxTags, driver mappings) that no display, dashboard, alarm, recipe or script reads or writes. |
   | Dynamic references | Computed paths recorded as patterns, to check by hand. |

3. Click an item to open the document that holds the reference.

A tag that only a PLC publishes is known while the PLC is connected. If the PLC is offline when the index is checked, a display bound to one of its variables can appear under broken references until it reconnects.

## Verify

- Bind a new text element to a tag and save the display. The tag's **Where used** panel lists the display at once: the index is updated on every save.
- Delete the binding, save, and look again: the display is gone from the list.

## How the cross-reference works

The server keeps an index of every reference in the project, in memory. It is built from the stores when the server starts (a fraction of a second for a project the size of the public demo) and updated each time a display, component, dashboard, alarm, recipe, eaxTag, script, driver configuration or account is saved or deleted, including changes that arrive from the other node of a high-availability pair. Updating the index after a display save takes a few milliseconds. The index is never stored or replicated: each server derives its own from the configuration it holds.

The fields of each display element that name a tag, a display or an alarm are declared in the element's property schema, so the cross-reference knows exactly which properties hold references. Expressions and scripts are parsed rather than searched for text.

## Editions

| Feature | Free | Starter | Pro | Enterprise |
|---|---|---|---|---|
| Where used, delete warnings, project health | yes | yes | yes | yes |
| Rename everywhere, cross-reference tables queried with SQL next to the historian, assistant tools (planned) | yes | - | yes | yes |

## API

The Studio reads three routes. All are read only, open to any signed-in role, and filtered by the caller's read rights.

| Request | Result |
|---|---|
| `GET /api/xref/where-used?kind=tag&id=Plant/Line1/Conveyor1/Speed` | Every reference to the node, and what defines it. |
| `GET /api/xref/uses?kind=screen&id=line1_overview` | Every reference the node holds. For `kind=user`: also the user's evaluated rights and a page of their audit entries (`offset`, `limit`). |
| `GET /api/xref/health` | Broken references, unused tags, dead alarms and dynamic references, with their counts. |

**When the audit trail cannot be read in full**, `GET /api/xref/uses?kind=user` answers `500` with an error ("what &lt;user&gt; changed is not shown: the audit trail cannot be read in full ..."), never a shorter list of changes that looks complete. This happens when older records in the audit ledger file no longer read as the server wrote them. Integrations must treat the `500` as "the trail cannot be read in full", never as an empty or complete list. Run **Verify** in **Security > Operations audit** to see where the file stops reading, and see [The audit trail on disk](/docs/platform/explanation/security-and-part-11/#25-the-audit-trail-on-disk).

`kind` is one of `tag`, `screen`, `scene3d`, `dashboard`, `component`, `project`, `page`, `alarm`, `recipe`, `script`, `eaxtags`, `mapping`, `channel`, `device`, `user`, `role`, `group` or `styleclass`.

A `styleclass` node is a [style class](/docs/eaxscada/how-to/use-style-classes/) by name (`GET /api/xref/where-used?kind=styleclass&id=Tank%20body`): the screens whose objects draw with it hold a `uses-style` reference (shown as **styled by**), and the project styles document defines it. A screen that names a class the styles do not define appears among the broken references.

## Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| A tag you know is used shows **Nothing uses it** | The tag is outside your read permissions, so the answer is the same as for a tag that does not exist. | Ask an administrator, who sees every tag. |
| A display reference is listed as **dynamic** | The path is built when the screen runs (a script or an expression joins text and variables). | Open the document and check which tags the expression can produce. |
| A PLC variable is listed under broken references | The PLC was not connected when you opened the report. | Reconnect the PLC and open **Project health** again. |
| The panel says the cross-reference is still being built | The server started a moment ago. | Wait a second and try again. |
