Infopath form locks up on buttonclick, querying web service to bring in lots of data. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Infopath form locks up on buttonclick, querying web service to bring in lots of data.

Last post 05-29-2012 02:34 PM by theDawckta. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-29-2012 02:34 PM

    Infopath form locks up on buttonclick, querying web service to bring in lots of data.

    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.

    Filed under: , ,
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.