SBM ModScript Reference → Programming SBM ModScript → Shell Properties → Shell Property Descriptions → Common Shell Properties
Common shell property accessors are defined for all contexts.
Variant& containing int (editable). The timeout value used during REST calls. Can be used to change the timeout for the subsequent REST calls in the script. To change the default value (30 seconds), you must add a new entry to the TS_SYSTEMSETTINGS table called DefaultRESTTimeout with TS_DATATYPE set to 1 and specify the desired timeout in the TS_LONGVALUE column.
Variant& containing string (read-only). The script's name as stored in the database and shown in the Scripts editor in SBM Composer.
Variant& containing int (read-only). This is the script's TS_ID. For details on the TS_ID, refer to Identifying Records by TS_ID and Table ID.
Variant& containing string (read-only). This is the file name from which the script was most recently read and parsed.
Variant& containing string (read-only). Identifies the current context. Possible values are pre-transition, post-transition, pre-state, post-state, HTML template, URL, notification, self registration, pre-DbImport, post-DbImport, and RunModScript (SOAP). For details on contexts, refer to SBM ModScript Contexts.
Variant& containing AppDb object. The current SBM database object. It provides global data related to the SBM database, as well as database I/O functionality. See AppDb.
Copyright © 2007–2020 Micro Focus or one of its affiliates. All rights reserved.