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 a web service that takes a string parameter.

In my infopath form I have a dropdown list that gets values from the webservice.

I have another dropdown list below it that I'm wanting to populate with values that are from the the webservice, but from the parameter value of the previous dropdown list.

so, for example

web service =

[webmethod] public List getStuff(string x) { do stuff....

return results; }

dropdown A values comes from webservice with default parameter of 'x'

dropdown A then submits values to webservice

Dropdown B values comes from the results of the submitted parameter to webservice.

I've tried creating two seperate webservices one with a recieve, and the other with a submit. then I created a rule on dropdown 'A' to submit values to the submit webservice, and then another action to query the values. The problem I'm having is that I can not bind dropdown B to the submit webservice, and when I try to bind it to the recieve webservice I only get the values that are in dropdown A.

Any help would be appreciated!!!

-thanks,

share|improve this question

1 Answer 1

up vote 0 down vote accepted

What you will probably need to do is create a hidden field and store your query value. Then set the webservice query parameter to that hidden and then requery your data.

share|improve this answer
    
thanks!! that worked –  ironman99 Dec 17 '12 at 23:04

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.