Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Luis_Saavedra
Contributor
Contributor

Reload Button by sending parameters to script

Dear Qlik Community

 

I have a QVDs’ snapshot from every day which are saved using the following named standard: “Reportname + _ + date” as follow:

BackupFinalReport_12-11-2020.qvd

BackupFinalReport_12-12-2020.qvd

BackupFinalReport_12-13-2020.qvd

BackupFinalReport_12-14-2020.qvd

BackupFinalReport_12-15-2020.qvd

And so on.

 

Right now, I am loading the last 2 QVD using 2 variables as follow and loading & concatenating the QVDs 2 times:

Let v BackupFinalReport1 = date(TODAY()-1,'YYYYMMDD');

Let vBackupFinalReport 2 = date(TODAY()-2,'YYYYMMDD');

 

CSPN_V2:

LOAD  *

FROM [$(vPath)/ BackupFinalReport_$(vBackupFinalReport1).qvd] (qvd)

Concatenate

LOAD  *

FROM [$(vPath)/ BackupFinalReport_$(vBackupFinalReport2).qvd] (qvd)

 

What I need to allow user to select the date directly on the app (by a filter or button) and then allow them to reload the app using the dates they selected,

For example, if the app has the data for 12-14-2020 and 12-15-2020 but they want to see the data for 12-11-2020 and 12-13-2020 I need to allow them to select the date, sent the date to variables already have in the script and reload the app with the dates values.

 

Is this possible? I hope to be clear enough.

 

Thanks a lot.

 

 

 

 

Labels (1)
2 Replies
Fernando_Fabregas
Creator II
Creator II

Hola Luis. 

Two alternatives to do it in another way:

1) Instead, Today () you can use a value obtained from an Excel or .txt. The user must change that value before reload data.

2) Save the upload date in your model and reload all QVDs (if possible). Users can select this upload date to filter what they need.

(Saludos desde el barrio de Saavedra, Buenos Aires...) 

ArnadoSandoval
Specialist II
Specialist II

@Luis_Saavedra , @Fernando_Fabregas 

Perhaps Dynamic Views is the way to go, this feature was introduced in February-March 2020, I haven't used it myself, but here are few videos and help pages, good luck:

I am suggesting you a Dynamic view because it allows you to run a Load Script from the User Interface and update visualizations, similar to your requirement, although you will have to adjust its logic to your need!

Please, let us know how you go with it, as I can't use on QlikSense Desktop.

Hope this helps,

 

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.