Use Actions
This page introduces the concept of Actions in KX Dashboards, explaining how user-triggered events like clicks or selections can drive dynamic interactions to create responsive and interactive dashboards.
Actions in KX Dashboards are mechanisms that enable user interactions to trigger specific changes or workflows in the dashboard. They are used to build dynamic, responsive, and interactive dashboards. Actions allow dashboard components to communicate and react to user behavior, such as clicking a button, selecting a row in a table, or changing a dropdown value.
For example, you can configure a table row selection to update another panel with details, or trigger a query when a filter value changes. This level of interactivity is essential for building real-time, data-driven applications.
By leveraging actions effectively, you can design dashboards that not only display data but also respond intelligently to user input.
Action Types
KX Dashboards supports multiple types of actions, each tied to specific events and components. Some common types include:
-
View state mapping: Maps values of View State parameters from the source dashboard to View State parameters in the destination Dashboard.
-
Open Dashboard/Screen: Opens a specified dashboard or screen.
-
Run Query: Executes a data query based on an event, for example, button press.
-
Open URL: Redirects to a different page or tab.
-
Apply Rolling Syntax/View State: If a view state has rolling syntax, this action updates the view states's value using the rolling syntax.
Event Triggers
Each action is triggered by a user event. Typical event types include:
-
mouse in
-
mouse out
-
click
-
double-click
-
right-click
-
hover
Configuration
Actions are configured using the properties panel in the dashboard editor of components that support actions. You can:
-
Choose the component and event to listen to.
-
Define what the action should do.
-
Chain multiple actions to build workflows.