A Logout Action is automatically created when you implement Security in your application. You can edit the Properties and Events of the Logout Action from the Actions dialog.
Logout Action can be used to perform user logout.
- To create a Logout Action:
- A New Action wizard will open.
- Choose Logout Type
- Name – set by default which can be modified
- Owner – the scope of the Action being created. By default it is set to Page, you can change it to Application if you want this action to be available across the app.
- Click Done to create the Action
- You will be directed to the Actions dialog, with the new action listed.
As you can see:
|Use default success handler||If checked, on successful logout, the user is redirected to the Home/Login page as configured. If custom logic is required, uncheck this property and implement the logic under the onSuccess event of the Action|
|In Flight Behavior||This property determines the behavior when a call is fired through the variable with the previous call still pending. Action queues all these calls, waits for the previous call completion and then based on the value of the inFlightBehavior property, decides what to do with all the queued calls:
|Redirect To||Page to be displayed after logout, can be the main page or the login page|
|Spinner Context||This property specifies on which UI widget the spinner should show. Leave empty if no spinner required.|
|Spinner Message||The message to be displayed below the spinner. Leave empty if no message is required below the spinner.
Note: If multiple actions are fired then the spinner messages will be displayed as a list below a single spinner.
During the life cycle of a Variable, a set of events are emitted by the Variable, thus giving you the option to control the behavior of the Variable such as input data validations, data processing, success/error handling, etc. Know More.
6. Data Integration – Variables
- 6.1 Binding Layer
- 6.2 Variables and Actions
- i. Overview
- ii. Variables
- iii. Actions
- iv. Scoping
- v. Variable Events
- vi. Error Handling
- 6.3 Variable Binding