Loading Action Scripts From a Node Model

You can load an Action Script from the model of an existing node. This type of script allows you to create a new node, insert it into multiple hierarchies, and define property values based on the relationships and attributes of the existing node.

To load an action script from a node model:

  1. On the Home page, select Script.
  2. From Source Type select Node Model.
  3. On the Source tab, do the following:
    1. Select the source version.
    2. Do one of the following to select a node:
      • Click Ellipsis button select a node, and click OK.

      • Type a node name in Node To Model and click Fetch.

        Note:

        Fetch also retrieves property values for the selected node.

    3. Use the check boxes to select instances of nodes to include in the Action Script.
  4. On the Properties tab, from Copy Properties, select the properties to be copied from the node model.
    • None––No properties are copied.

    • Overridden––Only overridden property values are copied.

    • Selected––Only the properties you select are copied.

      Note:

      For Selected, click Ellipsis button to display a property selector from which to select properties.

    • All––all properties are copied.

  5. Do the following:
    • Select the Global Properties tab to view the Global property values that will be included in the Action Script based on your selection in Step 4.

    • Select the Local Properties tab and select a hierarchy to view the local property values that will be included from each hierarchy based on your selection in Step 4. Make changes as necessary.

  6. On the Target tab, do the following:
    • Select the target version for the new node.

    • Enter a name for the new node.

    • Enter a description for the new node.

  7. Click Load.
  8. When the load completes, review the script actions and parameter values. You can:
    • Click edit button to modify a row.

    • Select Script, then Substitute Versions to change a version. Select the version to be replaced and the version to replace it with and click OK.

    • Click a column header to sort rows alphabetically.

    • Click Filter toolbar button. to filter one or more columns.

  9. Select the check box in the Process column next to each row to be run.

    Note:

    From the Script menu, use Select All to process all actions. You can select a subset of actions from a script and only process those actions.

  10. Click Run button. to run the Action Script.

    The results of each script action are displayed in the Status and Result Value columns. The script and the results can be saved to a file using the Download option on the Script menu.