Handling Fixed Links for Web Applications

For background information, see the Application Viewer reference section.

Create Subfolders for Organizing Fixed Links
  • System Manager is in Engineering mode.
  1. In System Browser, select Application View.
  1. Select Applications > Links.
  • The Object Configurator tab displays.
  1. Click New .
  1. In the New object dialog box, enter a name and description.
  1. Click OK.
  • The new folder is added to System Browser.
  1. Repeat the preceding steps for any other folders you want to add.

 

Delete Fixed Links or Folders
  • System Manager is in Engineering mode.
  1. In System Browser, select Application View.
  1. Select Applications > Links > [fixed link or folder to be deleted].
  • The Object Configurator tab displays.
  1. Click Delete .
  • A confirmation message displays.
  1. Click Yes.
  • The external web applications fixed link or folder is removed from System Browser.

 

Create a Script for Executing a Fixed Link Report

You will configure a script to carry out the execute command on the Application Name property based on the provided parameters settings. As result, the report output will be downloaded in the specified format in the specified directory onto the local client machine.

  • System Manager is in Engineering mode.
  • You set the user’s execution credentials for an external web application fixed link.
  1. In System Browser, select Application View.
  1. Select Applications > Logics > Scripts.
  1. Click the Script Editor tab.
  1. Click Save As .
  1. In the Save Object As dialog box, select the main Scripts folder or any subfolder under it as the destination where you want to save the new script.
    a. In the Name field, enter WebAppReportScript.
    b. Click OK.
  • The new script is added to System Browser and automatically selected. The Script Editor tab displays its code.
  1. In the Editor expander, enter the script code.
  • For example: executePropertyCommand("System11.ApplicationView:ApplicationView.FixedLink1", "AppName", "WebAppExecute", {"FileName":"EnergyReport", "FileExtension":0, "FilePath":"D:\\GMSProjects\\1_WebAppsReports", "TimeStamp":"","Section":1 })
  1. Click Save .
  • When you start the script, the report is executed as configured.

 

Create a Program for Fixed Link Report to Execute During the Night

You will configure a reaction that will execute a report during night time hours.

  • System Manager is in Engineering mode.
  • You set the user’s execution credentials for an external web application fixed link.
  1. Select Applications > Logics > Reactions.
  1. Select the Reaction Editor tab.
  1. In System Browser, select the Manual navigation check box.
  1. In the Output expander, open the Action expander.
  1. Select Applications > Links > [fixed link].
  1. Drag the external web application fixed link into the Scope/Target fields of the Action expander.
  1. In the Action expander, select the newly-created instruction row and set the following values:
  • Property = Application Name [AppName]
  • Command = Execute [WebAppExecute], FileExtension = HTML[1]
  1. In the Triggers expander, open the Time and Organization Mode expander.
  1. Click the first row.
  1. In the Time column, clear the Begin of day and End of day check boxes, and select the Set End Time check box.
  1. In the Set Start Time field, enter 12:00:00 AM.
  1. In the Set End Time field, enter 07:00:00 AM.
  • The Time field is set to From 12:00 to 7:00 AM.
  1. In the Effective Days field, from the drop-down list, select Recurrence = Occurs all days.
  • The Effective Days field, is set to Occurs all days.
  1. In the General Settings expander, enter DownloadWebAppReportNighttime in the Notes field.
  1. Click Save As .
  1. In the Save Object As dialog box, select the main Reactions folder or any subfolder under it as the destination where you want to save this reaction.
  1. In the Name field, enter DownloadWebAppReportNighttime.
  1. Click OK.