Help Center/ Huawei Cloud Astro Canvas/ User Guide/ Global Variables/ Configuring Page-to-Page Parameter Transfer
Updated on 2025-03-24 GMT+08:00

Configuring Page-to-Page Parameter Transfer

During development, you can set the event and action properties of widgets to create interactions between widgets and between widgets and pages. In a widget's interaction response event, page parameters can be transferred via the page jump action. When a page is redirected, parameters from the current page are passed to the target page. These parameters can be set to fixed values or bound to page variables.

For example, click above the area multi-line chart widget to configure the widget interaction event. Refer to Figure 1, click Interaction Event, select the Click Event, click Response Actions, and select Page Navigation to go to other internal pages. Turn on the Set Page Parameters switch and set parameters.

Configuration effect: On the released page, when you click the area multi-line chart widget, a new page is displayed. The global variable status of the previous page is assigned to the alarmStatus parameter, and the alarmStatus parameter is transferred to the new page. In this way, parameters are transferred between different pages.

Figure 1 Setting the interactive event action