Wait for activity to finish before next FOR loop
Das Goravani
goravanis at gmail.com
Tue Jul 26 16:06:31 UTC 2022
Have a task variable called PDFComplete, a boolean.
Set it to zero when you start printing one invoice.
In $pdfcomplete() method, set it to KTrue
Back in printing method, do this after you print one:
While not(PDFComplete)
End While
So that just spins until $pdfcomplete sets that to kTrue
This is a simple delay technique that won’t go forward until the last one is printed.
More information about the omnisdev-en
mailing list