I am in the process of creating a brand new scheduled report and have encountered an issue. How can I incorporate a script that includes a loop to run a specific function every 10 seconds? Here's what I have so far:
var count = 1;
while(count > 0){
setTimeout(function(){myFunction()},10000);
count--;
}
Oddly enough, when I test this script within the report studio (without scheduling it), it works perfectly fine. However, once the report is scheduled, the script ceases to work. Can anyone shed light on why this might be happening or perhaps offer an alternative solution?
Appreciate any help in advance.