I have a Suitelet that parses a CSV file and then ...
# suitescript
s
I have a Suitelet that parses a CSV file and then passes the object to a Map/Reduce script to create payments. I would like to poll the M/R script every 10 seconds via
task.checkStatus(mrTaskId)
to get the status and then update/refresh my suitelet progress results form. Per advice, I created a ClientScript to pause
var myTimeout = setTimeout(alertMsg, 10000)
, but the suitelet form will not load until the timeout is completed. Also, the suitelet code just runs to completion after that. In other words, how do I continue to call the
task.checkStatus
while
Status !== 'COMPLETE'
and refresh my suitelet page with the new status? is there a do/while loop option?