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.
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.