Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / June 2007

Tip: Looking for answers? Try searching our database.

Receive Data from Web Service based on parameter passed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
benoitc@gmail.com - 04 May 2007 19:47 GMT
When creating a new data connection to receive data from a web
service, if that web service requires a passed parameter in order to
return a value to the form, InfoPath prompts you to specify that
parameter with the "Set Value" button.

I was hoping you would be able to specify a form field for that
parameter, similar to the way it works when defining a connection to
submit data.  However, when it prompts you for a parameter, I must
enter a literal parameter, I can't point to a form field and say "use
that value".  I have tried using both "string" and "XmlNode" types
within the web service itself.

Short version of the question: Is there any way to get InfoPath to
allow you to dynamically specify the parameter based on the form
contents by telling it to use a field's value for the parameter,
rather than simply typing it in ahead of time?
S.Y.M. Wong-A-Ton - 05 May 2007 02:13 GMT
The receive data connection you created becomes a secondary data source (see
list of data sources in Data Source pane). The "form field" you are referring
to is not in the Main data source, but in a secondary data source of your
form.

What you can do is set the value of the field that you need to pass to the
web service in the secondary data source for the web service. And then when
you do a query on this secondary data source, the value you set will be
passed on to the web service.

You can set the value of the field in the secondary data source using either
rules or code.
---
S.Y.M. Wong-A-Ton

> When creating a new data connection to receive data from a web
> service, if that web service requires a passed parameter in order to
[quoted text clipped - 12 lines]
> contents by telling it to use a field's value for the parameter,
> rather than simply typing it in ahead of time?
Paul - 06 Jun 2007 20:29 GMT
Hi,

Are there any step-by-step "how to's" for doing this?  I'm very new to
InfoPath 2007 and this is exactly what I need to achieve, its just a little
vague without an example or two.

Thanks in advance,
Paul

> The receive data connection you created becomes a secondary data source (see
> list of data sources in Data Source pane). The "form field" you are referring
[quoted text clipped - 27 lines]
> > contents by telling it to use a field's value for the parameter,
> > rather than simply typing it in ahead of time?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.