User guide: Page scripts, SDK and Python
Choose an interface by runtime location and data needs.
Page JavaScript
Runs with the browser page to handle layout, interaction and presentation.
- Publish scripts and assets with the screen package. Page closure or navigation ends that page script’s lifecycle.
- Use the page SDK and declare the required Tags and alarm scope when accessing host data.
Custom page SDK
Provides authorized runtime values, writes, history, alarms, language and navigation to custom pages.
- Open the published page through a host menu and connect using the official SDK.
- Declare read and write Tags. Writes also depend on current user permissions and target Tag settings.
- See the SDK tutorial and API reference for methods, events and error handling.
Host Python
Runs project logic through the Script service independently of an open operator browser.
- Manage files in Code, configure actions and events in Run, and inspect execution results in Records.
- Manage project dependencies and custom shared packages in Settings → Python. Use third-party libraries through their native APIs.
- Access Tags through hqcontrol.tags within the project’s scope and permissions.