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.
- In System Browser, select Application View.
- Select Applications > Logics > Scripts.
- Click the Script Editor tab.
- Click Save As
.
- 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.
- 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 })
- Click Save
.
- When you start the script, the report is executed as configured.