Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sudeepkm
Specialist III
Specialist III

running Main UI QVW script when QVD created in the past 30 min

Hi All,

I've a scenario/requirement as mentioned below.

I've a QVD generator QVW named as DataQVDGen.qvw which runs every hour loading data from xls files.

The script of this QVW checks if there are any files under the DataSource directory then it runs and loads data else it exits the script.

So in this case only when I've a file present then it loads the data and append it to the QVD.

I've another QVW which has the UI and fetches data from the QVD mentioned above.

This QVW's qmc task/job runs whenever the QVDGen is task successful.

I need help in implementing a solution in such  a manner that the Main QVW runs only when the QVDGen loads data.

I tried using QVDCreateTime in the load script of the main QVW like below.

if (QvdCreatetime('Data.qvd') < now()-1/24) then

exit script;

The above script exits whenever the QVD generated more than past an hour. But the problem is the main QVW is becoming blank as it just exits without loading data from QVD.

Please help.

Thanks and Regards,

Sudeep

0 Replies