Creating ODAG links in Direct Query apps
You can link your Direct Query app to an on-demand template app. Creating these On-Demand App Generation (ODAG) links enables you to generate in-memory apps directly from your Direct Query app. This allows you to quickly extract data slices into Qlik Cloud for deeper analysis. For more information about generating an on-demand template app, see Exporting Direct Query app settings to a template app.
Creating an ODAG link
Do the following:
- In the sheet editor, select App navigation links from the assets panel and click Create new.
- In the window that appears, fill out the following fields:
Name
The name of your app navigation link.
Template app
Select your on-demand template app from the drop-down list.
Expression
The expression for the dimension used in your filter when you generated the on-demand template app.
Maximum row count
The maximum number of rows allowed for the link to function.
- Check the box Overwrite generated apps.
- Set Default view when opened to App overview to view your generated app or My new sheet to go to the sheet editor.
- Click Create.
Using an ODAG link
Once you have created an ODAG link, you must now create an interface to use it from your Direct Query app.
Do the following:
- In the sheet editor in your Direct Query app, create a button. For more information, see Adding visualizations in Creating a Direct Query app.Information noteYou can access the link by dragging it from the assets panel and dropping it on the sheet, but creating a button is recommended for ease of use.
- Select your button and, in the properties panel, click Actions and navigation.
- In the Navigation drop-down list, select On-demand app.
- In the On-demand drop-down list, select your ODAG link.
- Click Enable chart.
- Set Condition to enable chart to ON.
- Set the condition so the button is only enabled when your filter dimension = 1.
In the sheet view, your button will now be able to automatically generate a new on-demand in-memory app based on your selected dimension as long as you have selected exactly one value for your filter dimension. The generated app will have the same settings as your Direct Query app and will overwrite any previously generated on-demand apps.