Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vishsaggi
Champion III
Champion III

Reload one script statement only once in a day

I have a requirement where i have three script tabs in a qvw document. Like Script1, Script2, Script3 tabs.

I have this qvw scheduled thrice in a day on QMC. I want Script1 tab which has some Load Statements to run only once. Like Reloading only once. For eg: If the schedule trigger on QMC is @9AM, 12PM and @3PM, the Script1 tab should be reloaded only at 9AM it should not be reloaded @ other trigger times.

Any help much appreciated.

Many thnanks,
V.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can wrap the script on  tab1 in a conditional that executes only once per day. For example:

IF frac(now(1)) < MakeTime(11) THEN

  the script

ENDIF

View solution in original post

10 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can wrap the script on  tab1 in a conditional that executes only once per day. For example:

IF frac(now(1)) < MakeTime(11) THEN

  the script

ENDIF

vishsaggi
Champion III
Champion III
Author

Thanks Rob, will try and get back soon.

qliksus
Specialist II
Specialist II

Just put the load statement you want to restrict inside a include file  and put a condition on top of that

IF time()< 12 then

$(Include=9PMload.txt);

end if

And the remaining load statement after this line

vishsaggi
Champion III
Champion III
Author

Thanks Rob it worked.

vishsaggi
Champion III
Champion III
Author

Thanks Susant,

I will try that too. I am sure it works too.

vishsaggi
Champion III
Champion III
Author

I am trying to mark some responses helpful, but this goes forever when i click on Actions link. Did any one faced the same?

Capture.PNG

qliksus
Specialist II
Specialist II

Try after sometime

vishsaggi
Champion III
Champion III
Author

Nope i have been facing this since yesterday, don't know why.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Yes, I had the problem in Chrome for several days. It worked in Edge browser.  Yesterday it started working in Chrome again. Don't know what the issue is.

-Rob