Hi all, not sure where to put this question.
I am querying a webservice multiple times in a loop after I click a button on my infopath form. I query the webservice and populate fields in my form in a repeating section. There will be 104 seperate calls to this web service and it can take a long time (upwards of 18 minutes.)
I would love to update a field/textbox on the form to inform the user how many of the 104 calls we are through. I have done this and set the field in the loop to show n/104 have been completed. My only problem is the field does not update until it exits the button click call. I have tried using a rule as well but the same thing happens, the form only updates after the button click function is exited.
I have tried using this.CurrentView.ForceUpdate() in the loop to try to get the fields to refresh but it does not work either, still only refreshes when the button click function is exited.
Can anyone help me solve this? I was thinking this happens because I am locking the ui thread down with a long call, has anyone tried using a different thread for this sort of thing?
This is not a web based form.
Thanks for any help provided.