跳转至主要内容
CloudStudio

全局变量替换

This is the process by which a local variable (defined by a client) is removed and replaced by a global variable, applying this change across all devices, models, or environments w此处 it was previously configured.

This action allows unifying and avoiding redundant or duplicate variables, centralizing environment configuration management, and simplifying maintenance.

Warning: This process is not reversible.

To perform this action:

  1. Go to client configuration -> 设备 -> 变量类型

设备菜单中突出显示的变量类型选项及旁边的变量列表

  1. 点击 on the context menu and 选择 the Replace with Global Variable option.

变量上下文菜单中选中的替换为全局变量选项

  1. Once this option is 选择ed, an informational message appears for confirmation of the local variable replacement, along with a 选择or showing all existing global variables in the instance.

替换对话框显示警告信息和可用全局变量类型选择框

Warning: The global variables shown for replacement are only those of the same type as the local variable (e.g., a discrete local variable can only be replaced by a discrete global variable).

Warning: This process is not reversible.

Once this action is performed, the local variable ceases to exist in the variable types list. At the same time, it is replaced in 设备模型, devices, scripts, and every location w此处 the local variable previously existed.

最后更新于