Refresh Left-Pane of Web Port after Running Work Protocol

Name:ReloadLeftPane

Author: Ian Kerman

Version: 1.0

Created: 7/2011

Requirements: Pipeline Pilot 8.0 or later with Web Port

O/S: Windows and Linux

Limitations: Only works with specified Form Protocols, not with auto-generated forms

Purpose: At times it may be useful to refresh the input form used in a Web Port Protocol. Such instances are likely if the options available in the form are dynamic and may have changed after the execution of a Work Protocol. In the attached example, The Work Protocol will automatically re-run the Form Protocol and put its results in the left pane of Web Port. The method uses JavaScript to "press" a button which will run the protocol. This button may be left visible for manual refreshing or may be hidden.

To use, extract the files from the archive and import the folder into the "Web Services" folder under the Protocols tab. Then open up Web Port and run the "ReloadLeftPane" protocol and press submit. This will run the Work Protocol which will write a text file to a directory in your UserDir and refresh the Left Pane, displaying the contents of the directory.