Configuring Component Interaction
This section uses the tab list and line chart as an example to describe the component interaction configuration. In DLV, component interaction configuration indicates that a component transfers parameters to other components when responding to user operations or automatically triggering updates. The parameters can be used as dynamic variables during data query in other components. If you can select on the Interaction tab page of a component, the component supports the interaction function. Otherwise, the component does not support the interaction function.
Prerequisites
- You have enabled or purchased the required service and created a database instance.
- The corresponding data has been stored in the database instance.
Adding and Configuring Components
- Open the screen development page, click the Interaction icon, and select Geography Search in the Components list.
Figure 3 Selecting the geographical search component
- On the Pattern panel, configure the geographical search component. In this example, use the default settings.
Figure 4 Configuring the geographical search component
- Switch to the Data panel and set the data of the geographical search component.
Figure 5 Setting the data of the geographical search component
- Switch to the Interaction panel and define and use interaction variables.
Figure 6 Defining and using interaction variables
- In the component list on the left, choose
.Figure 7 Selecting a bar chart component
- On the Pattern tab page, configure the bar chart pattern. This example uses the default settings.
Figure 8 Configuring the bar chart pattern
- Switch to the Data tab page and configure the bar chart.
Previewing and Publishing Screens
- In the upper right corner of the screen development page, click to preview the screen.
- If you reset the geographical location in the geographical search, the bar chart displays only the data of the corresponding location.
- After ensuring that interaction works, click in the upper right corner of the screen development page, configure publish parameters, and then share the screen with other users.
Figure 11 Publishing and sharing the screen
Enabling Interaction
To enable the interaction function, you can select on the Interaction tab page. When the value of the tab component changes, the value is transferred to other components.
Field Mapping
Configure field mappings When variable ${data} is used in other components, the value mapped by label can be obtained.
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