QPR Knowledge Base 2017.1

Running Scripts

Running Scripts

Previous topic Next topic No directory for this topic  

Running Scripts

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  


The Run command can be used to execute scripts that have been created based on the QPR API. For more information about QPR scripts, refer to the QPR Developer's Guide.



Running a Script

To execute a QPR Modeling Client script, do the following:


1.Click the btn_run_script button on the Home tab of the ribbon or select Run Script > More from the Application menu. The "Select a QPR script file" window appears.
2.Select the script you want to run. Click Open. The script is now executed if the syntax is correct and scripts are allowed to run (see QPR Developer's Guide for more information). Depending on the visibility settings defined in the script, you may or may not see the operations performed.


If the location of the script files has been defined in the QPR_Clients.ini file, you can click the Run Script drop-down menu on the Home tab of the ribbon or select Run Script in the Application menu, and select the script from the menu that is displayed in either case. See the QPR - Administrator's Guide for information on how to define the script location.


If defined in the script, there may also be a separate button for the script in the Ribbon. Clicking the script button will run the script.



Note: Never run a script if you don't know what it will do.


Note: If you try to run an older QPR model file (which are also *.pmf files), you will get an error message about the file not being a QPR script file. Models stored in a file can be opened with the Open arrow_right File Model command available in the Application menu.