I would like to enable the user to select the path to reload his data from (A list box).
So his selection updates a path variable in the FROM statement.
The user will reload in the conventional way, since there is no button in the UI.
I'm opened to use an extension, but not sure about the needed logic.
Solved! Go to Solution.
As far as I know there is no good way of doing this without resorting to ODAG - On Demand App Generation or On-demand Apps. It should work very well for this kind of scenario - but don't let the Qlik marketing info mislead you.... ODAG is not only for "Big Data", it works very well for any kind of data - actually quicker and better for smaller data. It is the dynamics for the end-user being able to reload on the fly that is the important thing for your use case - not the Big Data thing.
Unfortunately the "learning curve" is a bit steep for just achieving the "dynamic path" but it is well worth the effort since you most likely will be able to use the On-demand Apps approach in other scenarios too later.
Hi Dafnis, selections can't be used in script but variable values can be used, so you will need to use an extension that allows to store user selection in a variable that you can use in script.
There are many ways of doing this, a simple way canbe using this extension (Qlik Branch) and create a button for each option, if you need a selectable list, you will need a button that copies the value selected to the variable before reloading.
I'm trying the extension you referred to.
Not sure how the variable can be defined. There is no option to select it..
What am I doing wrong?
Re a button to copy a selected value: does it need to be another extension?
I checked it with VizLib objects. The variable value is not saved, so reload doesn't recognize the path that the user selected.
do you have a sample app to share?
just what I needed!
Somehow, the extension needs a refresh and then it's possible to select the variable.
Another "miracle" is the reload button, It generates an error message ("Reload Failed!) but reloads anyway.