svyCloud
Use the svyCloud scope in Servoy Cloud to detect the active environment type, set tenant name and value, and configure session idle timeout per client.
Environment detection
CLOUD_ENVIRONMENT_TYPES
CLOUD_ENVIRONMENT_TYPESConstant
Value
getCurrentEnvironment()
getCurrentEnvironment()var env = scopes.svyCloud.getCurrentEnvironment();
if (env === scopes.svyCloud.CLOUD_ENVIRONMENT_TYPES.PRODUCTION) {
// production-only logic
}Tenant management
setTenantName(value)
setTenantName(value)Parameter
Type
Description
setTenantValue(value)
setTenantValue(value)Parameter
Type
Description
setMaxIdleTime(timeInMinutes)
setMaxIdleTime(timeInMinutes)Parameter
Type
Description
Build and version info
Function
Returns
Description
Last updated
Was this helpful?