Skip to main content
Version: v10.15


Introduction to Actions in WaveMaker. Learn how to implement actions.

Variables and Actions form the glue between the frontend UI and the backend services. Variables provide data integration for the widgets, while Actions implement the business logic, rules and data flows. For more information about creating variables, see Variables.

Actions are the tasks performed such as invoking a backend API, database CRUD operation or navigating to another page etc. when a UI event occurs. Events could be either user-initiated or can occur as a result of another task being performed.

Action Types

Actions can be categorized based on the triggering event:

No.Action TypesDescription
1.NavigationTo pass control from one page to another passing data if needed.
2.LoginTo trigger at the time of user login.
3.LogoutTo trigger at the time of user logout.
4.TimerTo trigger an action based on time interval.
5.NotificationTo alert the user of any information.

Error Handling

WaveMaker Variables dealing with external services like Web, Database etc. may not always return with a successful response. Sometimes the Variable call may fail due to various reasons like server validation, request timeout, etc. To gracefully handle such scenarios, a default Notification Action (toaster target) named appNotification is created in the app. By default, all Variables invoke this action on error response from the target service. This enables the app has a central point of error handling.

The default appNotification Action can further be customized as per requirement. For example, if you want the app to display errors in an alert dialog, the appNotification action can be changed to alert type. To suppress the default error handling, simply delete the appNotification action. For more information, see Error handling.

variable error