system.config.getActiveMode
New in 8.3.8
This function is used in Python Scripting.
Descriptionβ
Returns the current deployment mode, or None if no mode is explicitly active.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.config.getActiveMode()
Parametersβ
Nothing
Returnsβ
String - The active collection, as a string.
Scopeβ
Gateway
Code Examplesβ
Code Snippet
# This example will return the active collection and print it to a label component on the same view.
activeCollection = system.config.getActiveMode()
self.getSibling("Label").props.text = activeCollection