I am running a long script (data pre-population) and during this process, I am trying to inform the user of the progress.
To do this, I am updating a text field with a short description as to what has been completed.
ie: Projects loaded; Dates loaded, Configuration completed, ....
However, the text field that I am writing the information to only gets updated at the end of the script.
I believe that there is a delay in the screen (form) refresh.
Is this normal? What is the best way to force a screen refresh?
One way could be to split the script in various events and put scripts in chain. Put scripts in some hidden fields unused event like exit and start the chain by calling fieldNro1.execEvent("exit"); in form initialization. After you have finished project loading (phase 1), you can update the info text and call fieldNro2.execEvent("exit");
After that update the info text and fire up exit-event from fieldNro3 and so on.