# 系统变量

一部分系统变量由系统所定义，用于提供有关系统和 Qlik Sense 应用程序的信息。

使用每个函数的下拉列表可查看每个函数的简短描述和语法。对于某些函数，可以通过单击语法描述中的函数名称了解有关该特定函数的更多信息。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### CreateSearchIndexOnReload

此变量用于定义是否应在数据重新加载期间创建搜索索引文件。

[**CreateSearchIndexOnReload**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/CreateSearchIndexOnReload.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### HidePrefix

所有以此文本字符串开始的字段名会按与系统字段相同的方式隐藏。 这是用户定义的变量。

[**HidePrefix**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/HidePrefix.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### HideSuffix

所有以此文本字符串结束的字段名会按与系统字段相同的方式隐藏。 这是用户定义的变量。

[**HideSuffix**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/HideSuffix.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### Include

Include/Must\_Include 变量可指定一个脚本，其中包含应包含在脚本中并作为脚本代码计算的文本。 它不用于添加数据。您可以将部分脚本代码存储在单独的文本文件中，并可以在多个应用程序中重复使用它。 这是用户定义的变量。

$([**Include**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Include.htm)=filename)

$(Must\_Include=filename)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### OpenUrlTimeout

此变量用于定义 Qlik Sense 应在从 URL 源（如HTML 页面）获取数据时考虑的超时（秒）。如果省略，则超时约为 20 分钟。

[**OpenUrlTimeout**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/OpenUrlTimeout.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### QlikCloudGroupMode

该变量可控制区域权限中使用并通过 GetUserAttr 函数（`'userGroups'` 属性）返回的分组。

[**QlikCloudGroupMode**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/QlikCloudGroupMode.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### ScriptOnlyVariables

ScriptOnlyVariables系统变量用于定义脚本专用变量。此变量指定脚本变量是仅在脚本中可用，还是在脚本外部也可用（和可见）—例如，在应用程序的工作表视图中。

[**ScriptOnlyVariables**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/ScriptOnlyVariables.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### StripComments

如果此变量设置为 0，则禁止剥离脚本中的 /\*..\*/ 和 // 注释。如果未定义此变量，则会始终执行注释剥离。

[**StripComments**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/StripComments.htm)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/system-variables.htm)

#### Verbatim

全部字段值通常会自动剥离前导和尾部空格 (ASCII 32)，然后再加载到 Qlik Sense 数据库。将此变量设置为 1 会暂停剥离空格。Tab (ASCII 9) 和硬空格 (ANSI 160) 字符永远都不会剥离。

[**Verbatim**](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Verbatim.htm)