How to automatically refresh code for specific nodes in all workspaces?

How to automatically refresh code for specific nodes in all workspaces?

book

Article ID: KB0076486

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.5 and higher

Description

Typically, all SVB nodes in a Statistica workspaces save the code it uses embedded with the workspace. This means that if you changed a small behavior in the node of a specific workspace, the behavior will only be reflected in this specific workspace. This article details how the code for a specific node(s) can be refreshed automatically throughout all the workspaces.
 

Resolution

Workspaces have a feature to allow a node to use the latest svx code from the master copy, normally in [statistica_installation_directory]\DataMiner, rather than that svx code saved with the node. The purpose is to allow previously saved/deployed workspaces to use the latest code and get any enhancements/fixes there without having to update all the previously saved nodes in all workspaces.

To activate this feature, create a file named ReloadNodes.txt in the Statistica Installation Directory that contains the dmi of the node that is to be updated relative to the [statistica_installation_directory]\DataMiner directory. If you are unsure of the name of the dmi file, you may run the attached macro while the workspace is open by changing the Constant named "NodeNameinWorkspace". You may also add more lines to find the dmi of several nodes at once as illustrated below :

User-added image

Copy the contents of the report generated from the macro and place it in the ReloadNodes.txt and save the file in the Statistica Installation directory. 

Once this file is placed, the next time a user opens a workspace containing these nodes, the code will be automatically updated from the svx that the aforementioned dmi file would point to.

As an alternative to reopening the workspaces, to see the changes you may also run the script from [Statistica Install Directory]\SupportScripts\UpdateDeployedWorkspaces.svb so all workspaces that contain the nodes within ReloadNode.txt would be updated. The script will ask for the loaction of ReloadNodes.txt and then process its contents and look for workspaces within the specified System View folder and update the workspaces found. The script will also create a report on the workspaces it scanned and the changes made, if any. Brief demo of the script is in the gif below:

User-added image



 

Issue/Introduction

How to automatically refresh code for specific nodes in all workspaces?

Attachments

How to automatically refresh code for specific nodes in all workspaces? get_app