Generating Paths

When writing Impact Management Services scripts, you must locate the parts of the DOM that the scripts update. Using the Inspector Utility, you can generate and save paths to values, nodes, or property names.

*  To use the Inspector Utility to generate paths to values, nodes, or property names:

  1. From the node hierarchy, select a node, and from the right pane, select the property name or value.

    The property name or value must be selected otherwise using the Include path-generation options in the JavaScript query string pane will not return results.

  2. Click Show Path button (Show Search Path generation controls).

    JavaScript query string is displayed.

  3. Select a path-generation option:

    • Exact path to node

    • Exact path to node and Include property name

    • Exact path to node, Include property name, and Include property value

    • All matching nodes—References nodes wherever they are located in the DOM and generates a wildcard search path to all nodes of one type (for example, to generate paths to both document scripts and dashboard shape scripts)

    • All matching nodes and Include property name

    • All matching nodes, Include property name, and Include property value

    The text box displays the results of each selected option.

  4. Optional: To save the path, click Copy to clipboard.

    Alternatively, to save paths to nodes, right-click a node in the hierarchy, and select Copy to Clipboard, then Path (No Context) or Copy to Clipboard, then Path (With Context). See Displaying and Copying Node Attributes.

Note:

To investigate the DOM structure and for information on the accessing DOM properties, also see Investigating the Impact Management Services DOM Structure and Accessing Properties.