All Products
Search
Document Center

DataV:Global nodes

Last Updated:May 15, 2023

Global nodes help you set the initial status of widgets and use parameters, such as the callback ID and temporary variables, in Blueprint Editor. This topic describes how to configure global nodes in Blueprint Editor.

After global nodes are added to the canvas, you can view the events and actions supported by these global nodes. For more information about how to add a file, see Use logical nodes

全局节点交互配置

Type

Event /Action

Description

Event

Page Initialization Complete

After all widgets of a project are initialized, this event is triggered with no parameters used.

Data loading complete

After the data interfaces for all widgets in a project are loaded, this event is triggered with no parameters used.

Policy Action

Set callback ID

Connects to the Interactive panel of Canvas Editor. You can set the callback ID. If a callback ID is changed, the widget that listens to this callback ID needs to request data again. Callback IDs only support strings, numbers, single-level objects, and single-level arrays. Nested values are not supported. The following code snippet provides examples of parameters.

{  
  data: [{    
   // The variable name of a callback ID     
   name: "productName",    
   // The callback ID     
   value: "DataV"  
  }]
}

Value Method

When you edit the processing method, you can getCallbackValue("productName") the value. For more information, see What is Blueprint Editor?.

Set page temporary variables

This action is used to configure global variables for a page. Global variables use complex nested data for simple data storage. The following code snippet provides examples of parameters.

{
  data: [{
// The temporary variable name
    name: "product",
// The value of the temporary variable
    value: [{
      "productName": "DataV",
      "companyName": "Alibaba"
    }]
  }]
}

Value Method

You can getLocalValue("product") the value when you edit the processing method.

Note

If a line connection of an event triggers the Configure Page Temporary Variables action and other actions at the same time, the Configure Page Temporary Variables action is preferentially executed.

Update all component data

This action is used to update the data of all widgets. After an update, all the data interfaces of all widgets request data and render data again with no parameters used.