Setting Variables in a Dataset or Navigation Event Action
Variables can be set in the dataset of a widget or the navigation event action of a widget.
Setting Variables in a Dataset or Navigation Event Action
- In the upper part of the large screen editing page, click
to create and set page variables.
For example, add the global variable url and set the variable description to URL of the data details page.
Figure 1 Adding a global variable - Drag the bar chart widget from the All > Chart area to the blank area of the canvas.
- Click
above the widget, select static data from the configuration process drop-down list box, add the url parameter, and click the save button.
Figure 2 Configuration process - Click
above the widget and configure the widget interaction event.
- In the As Responder area, click Interaction Event and select the Clicking data event.
- Click Response Actions and select Set Global Variables.
- In the action details area, click the plus sign (+), assign the value of the page variable url to the url field in the widget data source, and click the confirm button.
Figure 3 Value assignment
- Click Response Actions and select Page Navigation to jump to an external page. The external page address references the global variable and is set to ${url}. A new window is displayed to open the page address. Click Confirm.
- Click Finish. After the setting, when you click the bar chart, the page of the specific URL set in the dataset is displayed.
Figure 4 Setting page navigation
- After the setting is complete, click
in the upper part of the page to save the page.
- After the settings are saved, click
to check the preview effect.
Click the corresponding data. The corresponding page is displayed, which meets the expectation.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot