Node Customizations

  1. Right-click on a workspace node
  2. On the shortcut menu select Customize Outputs to display the Node Customizations dialog box
  3. Use these options to record or write scripts to customize output graphs and spreadsheets. You can assign the recorded macros to particular outputs, to be executed every time that node runs and the output is produced.

You may want to customize a graph by changing the font on the title or changing the plot markers or colors, etc. Similarly, you may want to change the display format of a variable in a spreadsheet, change the name of a variable, or highlight cells with values greater than some threshold.

View

In this group box, specify the Node Customizations dialog box view.

By Node

When you select this option button, the tree in the top pane contains all nodes in the workspace, as well as a marker for [All Nodes].

  • Each node item contains markers for [All Graph Outputs] or [All Spreadsheet Outputs] as applicable, as well as all of the outputs that the node produces.
  • Each output item contains all of the scripts, if any, that have been assigned to run against that output.
  • The Scripts list in the bottom pane shows all of the scripts that exist in this workspace and are available to apply to node outputs.  

In order to apply a script to an output, drag it from the Scripts list to the tree and drop it on the desired output or marker such as [All Graph Outputs].

To control the order of execution of scripts assigned to a particular output, drag the scripts in the tree to rearrange the order.

You can also assign a script to run against [All Graph Outputs] of [All Nodes]. Overall order of execution is scripts assigned to [All Nodes] in the user-defined order, followed by scripts assigned to an [All Outputs] tag of a node in the user-defined order, followed by all scripts assigned to the particular output, in the user-defined order.

By Script

    1. Select this option button.
      • The tree in the top pane shows all the scripts as the root items, with the nodes and outputs the scripts are attached to as the child items, which makes  clear exactly where a particular script is used in the workspace.
      • The bottom pane shows nodes and outputs.
    1. Drag outputs up to scripts to assign outputs to scripts.

View Output Document

    1. Select an output in the tree,
    1. Click this button.

      The document will be made visible and brought to the front.

Record Customization Script

    1. Select an output document in the tree.
    1. Click this button to customize the output document.

      A macro will be recorded as you make changes, and when you finish, a script will be added to the workspace and attached to the selected output in the tree. Once saved, this script will be executed against this output every time the node executes.

      If you select a previously recorded macro and click this button, it will record another customization macro and merge it with the selected macro.

Remove

    1. Select a script in the tree.
    1. Click this button to disassociate that script from the output so that it will no longer be executed for that output. You can also press the Delete key on your keyboard to do this.

Run Script

  • When the Launch Macro in debugger check box  is selected, the script will be opened in a Macro window and pause on the first line of the script code to enable debugging the macro.

Execute Node

Select a node and click this button to execute that node and update its outputs in the tree.

This may be needed prior to performing other operations that require the output to exist, such as View Output Document, Record Customization Script, etc.

Add/Edit Filter

Filters make it possible for you to apply a script only to outputs whose titles match a pattern or rule.

    1. Select a script that is attached to any of the [All Outputs] type markers.
    1. Click this button to display the Add/Edit Filter dialog box, in which you can define a filter string of various types to choose which outputs the script will apply to.

Rename Output

When any output is selected, this button can be selected to display a Rename Output dialog box, where you can enter a new name and select the OK button to rename the report document.

New Script

    1. Click this button to display the Select Statistica Macro dialog box, which contains options,
    1. Select a Statistica macro to copy into the workspace.

      The workspace will save an embedded copy of this script, not a link to a saved script.

      You can also choose to create a link to a script saved in Statistica Enterprise.

Edit Script

    1. Select a script .
    1. Click this button to open the script in a Macro window where you can edit it.

      After saving and closing, the script will be updated in the workspace.

Delete Script

    1. Select a script ,
    1. Click this button to remove the script from all outputs in the tree and delete it from the workspace.

Properties

    1. Select a script.
    1. Click this button to display the Script Properties dialog box, where you can change the name, description, and type of document the script applies to.

Deploy to Enterprise

    1. Select a script.
    1. Click this button to save the embedded script to Enterprise, to make it easier to share scripts across workspaces and store them in one single location for ease of updating.

Apply

After recording a new script, click the Apply button to apply the script to the output.

Close

Click this button to close the Node Customizations dialog box.