List of application commands available to script.
These commands can be used with IsCommandPermitted and ExecuteCommand. These commands are also available to third-party controls via IApplication.RequestCommand.
| Command | Description |
|---|---|
| Editor Mode | |
| EnterRunMode | Switches to Run Mode. |
| ExitRunMode | Switches to Design Mode (subject to user permissions and application InitParams). |
| ToggleKioskView | Toggles Kiosk View on or off. To force Kiosk View on or off, pass true or false as the optional command argument. |
| SecurityLogout | Logs the user out and restarts the application. |
| Exit | Logs the user out, exits the application, and closes the browser. |
| Pages | |
| OpenPage | Opens the specified page. |
| OpenDefaultPage | Opens the default page (if specified as one of the application InitParams). |
| Zoom | |
| ZoomBestFit | Sets the zoom to best fit the browser window and available space. Zoom is available in Design Mode and Run Mode, but not in Kiosk View. |
| ZoomIn | Zooms in one level (i.e., objects become larger). Application zoom levels are shown on the Zoom toolbar. Zoom is available in Design Mode and Run Mode, but not in Kiosk View. |
| ZoomOut | Zooms out one level (i.e. objects become smaller). Application zoom levels are shown on the Zoom toolbar. Zoom is available in Design Mode and Run Mode, but not in Kiosk View. |
| Zoom100 | Zooms to 100%. (i.e., the page width and height are used as 'natural' dimensions). Zoom is available in Design Mode and Run Mode, but not in Kiosk View. |
| ZoomPercent | Zooms the page to the specified percentage, which typically needs to be between 10% and 800%. Zoom is available in Design Mode and Run Mode, but not in Kiosk View. |
| Browser | |
| NavigateToUrl | Opens a new browser window and navigates to the specified url. |
| RunJavascript | Runs javascript in the hosting browser context. |
| Options | |
| ChangeLanguage | Changes the user interface language. To be supported in a future release. |
| Diagnostics | |
| ToggleScriptDebugWindow | Toggles the visibility of the Script Debug Window. This command is available in Design Mode and Run Mode, but not in Kiosk View. |
See ExecuteCommand for a usage example.
