Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Tk_0021_GG
Contributor

How to make the ODAG function one-click

I want to implement a feature in Qlik Sense using an extension.
The feature I want to implement is to automatically transition to the new app screen once the new app is generated, instead of having to press the 'Open' button after the new app is generated, as is required with the default ODAG function.

 

 

I would like to ask about the implementation of Qlik Sense extensions.
I have something I want to implement with a Qlik Sense extension. With the default ODAG function, the following flow is necessary to transition to the newly created app:

 

Press the ODAG button → 'Creating a new app' pops up →
After 'New app has been generated' is displayed, press the 'Open' button → Transition to the new app screen

 

The function I want is:

 

Press the ODAG button → 'Creating a new app' pops up →
Automatically transition to the new app screen once the new app is generated

 

In conclusion, I understand that you want to implement a feature in Qlik Sense using an extension.The feature I want to implement is to automatically transition to the new app screen once the new app is generated, instead of having to press the 'Open' button after the new app is generated, as is required with the default ODAG function.

 

I would like to implement this flow. I am thinking of using an extension to meet these requirements. I would appreciate it if you could give me some good ideas or methods.

Labels (6)
1 Solution

Accepted Solutions
alex_colombo
Employee

About developments flow, I can share with you the API that you have to call for monitoring the status of an ODAG request.

You have to perform a GET call for having status and information about the ODAG link used by your app. The API end point is: https://_qlikServer_/api/v1/links/{linkId}/requests&pending=true

This will provide to you if the ODAG requests is loading, success, failed or cancelled. At this point you know if the app is generated and you can open a new browser tab with new app.

 

It is not necesseray to manipulate anything on the platform, you just need to call Odag service REST API.

View solution in original post

3 Replies
alex_colombo
Employee

Hi @Tk_0021_GG , here I see two options, both of them required an extension as you suggested, which will do:

  1. Monitor ODAG link requests and, as soon as an app is created, make navigation to the new app (the quickest to develop)
    1. Needs to be addedd on all the sheet where you need to use it
    2. Qlik developer has to set ODAG link in extension properties
    3. Extension will not open new app immiadtley after the finish, it depends how frequently this code check ODAG links 
  2. Create the entire ODAG process with the extension and at the end, when app is ready, make navigation to the new app (the longest to develop)
    1. Needs to be addedd on all the sheet where you need to use it
    2. Qlik developer has to set ODAG link in extension properties
    3. Needs to implement a user interface for managing created apps, similar to native functionality
    4. Needs to be maintaned if something change from ODAG creation point of view
    5. You are re writing code that already exist in the product, a part from the last part

As you can see, there are a lot of things to keep in mind and analyze. This brings me to challenge your requirement and try to stay with native functionality, which means to the user to make one more click to open the generated app, if possible of course.

Tk_0021_GG
Contributor
Author

Hi, @Alex_colombo. Thank you very much for your valuable advice.

I understand that it is very difficult to implement, and I would like to ask you some additional questions. Regarding the first method (Monitor ODAG link requests and, as soon as an app is created, make navigation to the new app), I would like to receive more specific advice on the specific development flow and internal processing.

In particular, I would appreciate it if you could tell me whether or not it is necessary to manipulate the settings of the Qlik development platform.

Looking forward to hearing from you.

alex_colombo
Employee

About developments flow, I can share with you the API that you have to call for monitoring the status of an ODAG request.

You have to perform a GET call for having status and information about the ODAG link used by your app. The API end point is: https://_qlikServer_/api/v1/links/{linkId}/requests&pending=true

This will provide to you if the ODAG requests is loading, success, failed or cancelled. At this point you know if the app is generated and you can open a new browser tab with new app.

 

It is not necesseray to manipulate anything on the platform, you just need to call Odag service REST API.