跳转至主要内容
CloudStudio

Local Variable Promotion

On the platform, variables can be defined at the client level (local) or at the global level (shared by all clients in an instance). This feature allows promoting a local variable to a global variable, facilitating its reuse across multiple contexts within the platform.

When a variable is promoted:

  • It is removed from the local variables list of the client that originally defined it.
  • It is added to the global variables list, available to all clients within the instance.
  • It becomes available for use in device configuration for any client.

Warning: This action is not reversible.

How to Promote a Variable

  • Go to the client's 变量类型 list.
  • 点击 on the context menu of the desired variable.
  • 选择 the Promote to Global option.

变量上下文菜单中选中的提升为全局选项

Promotion Confirmation

When 选择ing the option, the platform displays a warning indicating that the variable will move from the local scope to the global scope.

将变量类型从本地提升为全局的确认警告对话框

Once the action is confirmed:

  • The variable will no longer be available exclusively to the original client.
  • It will be included in the global variables list.

全局变量类型列表经筛选后显示已提升的变量

Post-Promotion Management

Promoted variables can be managed (edited, cloned, or deleted) in the same way as those originally created as global variables.

最后更新于

本页内容