Setting InfoPath Secondary Data Source Parameter to Main Data Source (xpath) Value

P

phatmike11

I have an infopath form that I need to set the secondary datasources
value at runtime. The value should be set to a value that is always in
the main datasource when the form opens for the first time. I have
tried modifying the datasource and changing the set value... to the
xpath of the main datasources value but it simply passes the xpath
string (/a:b/A:c/A:d) into the web service not the value contained
within it. I want this to be set when the form loads because there a
multiple sections that require the parameter to be there or they will
be blank. The web service simply takes in an ID number and returns the
record with the corresponding ID. All data on the infopath form is
populated with this single parameter. I tried setting my section
control rule to query the service. However, you can't set this value
there either. Any help would be much appreciated.

The basic question is there a way to set the parameter to a web
service in a secondary data source based on the value of an xpath in
the main datasource out of the box? If not any code sample to point
me in the right direction would be much appreciated.
 
C

Clay Fox

I would recommend you check out the Database Accelerator Web Services Suite.
It may be useful to you instead of building web services fom scratch but also
there are support tutorials which show how to pass parameters to the
webservices which may be what you need.
http://www.qdabra.com

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top