Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. READ MORE

How to change the cancel button behavior in my blend setup flow

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
LauraLangenaken
Support
Support

How to change the cancel button behavior in my blend setup flow

Last Update:

Jul 29, 2021 9:27:49 AM

Updated By:

Jamie_Gregory

Created date:

May 26, 2021 5:30:46 AM

Recently a new 'Cancel' button was added to the setup screen, allowing users to cancel a blend setup midway through. In this article, we'll describe the default behavior of this button, and what you can do to change this.

The cancel button appears on the bottom right of any setup screen and allows users to cleanly exit the setup flow.

image2021-5-25_17-9-6.png

 

Default Behavior

The default behaviour of this button is to end the setup flow, and redirect the user to the blend detail page inside the iframe. This means that if the setup flow is "canceled", it simply navigates the user away from it. It doesn't delete any blend instances or datasources that were already created for instance. If the user clicks the setup button on the blend detail page they will just continue the setup flow as before.

image2021-5-25_17-31-23.png

Customizing the cancel behavior

If we want to tailor the user experience, we can take advantage of an available javascript event (setup-canceled). When the user clicks this Cancel button, the setup-canceled event will be emitted, but ONLY if we explicitly ask for it in the JWT. We can do so by adding the embed parameter to the JWT (javascript example below). Please note that we are choosing the "event mode" in this example.

image2021-5-25_17-27-40.png

If you add this code to your JWT, you'll notice that this cancel button no longer has any logic of its own. It simply emits the javascript event "setup-canceled" (note the single l), and otherwise just hangs on the same page. As part of the implementation, it's expected that we listen to the javascript event being emitted (javascript example below), and write some logic that decides what to do next.

LauraLangenaken_1-1622020816295.png

The implementation of this is entirely up to you. Some customers may want to delete redundant blend instances if the setup flow wasn't completed, while others may want to remove datasource credentials if they aren't being used.

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Tags (1)
Version history
Last update:
‎2021-07-29 09:27 AM
Updated by: