Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have an InfoPath 2010 form that is pulling data from a web service.

For example, I have a text box, a button, and a drop down list. The button submits the text box value to the web service. The drop down list has the values of the queried results from the web service.

So what I'm trying to do is when the user places a different value in the text box and then clicks the button, the drop down list is updated with the new values.

I can not get the actions to repost and refresh the drop down list. Any help?

Thanks

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Adding to what rjcup3 said. Easiest way to do this is to add a rule that sets your web server parm again then another rule that queries data and select your web service as the data source. This would be a no code solution.

Once the data is queried again, if your ddl is bound to the web service datafield it will automatically refresh.

share|improve this answer

What you would need to do is call the web service again with the updated user input from the button's click handler.

http://msdn.microsoft.com/en-us/library/aa947848.aspx

http://office.microsoft.com/en-us/infopath-help/add-buttons-HA101783359.aspx?CTT=1#_Toc275279770

share|improve this answer
    
And then update the UI... –  RJ Cuthbertson May 2 '12 at 19:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.