Repeating table in Secondary Data Source to Repeating table in Mai

Repeating table in Secondary Data Source to Repeating table in Mai

Post by TWF0dEJlbG » Thu, 03 Feb 2005 00:39:09


I have a web service which I call which has a repeating section in it. I
need to map values in that repeating section to my main datasource which also
has a section with repeating values which are similar but not identical to
the secondary.

Is there an easy way to move this data over? I tried using set field rules,
but it will only copy the first row of the repeating section. Is there a way
to loop while setting a field's value?
 
 
 

Repeating table in Secondary Data Source to Repeating table in Mai

Post by Greg Colli » Thu, 03 Feb 2005 08:40:02

You will have to either use code to accomplish what you want by looping through each field. Another possibility is to use a custom XSL applied to the WS return value, which would create a file compatible with your main DOM, and then replace your main DOM (or a portion of it) with the XSL-generated DOM.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.yqcomputer.com/




I have a web service which I call which has a repeating section in it. I
need to map values in that repeating section to my main datasource which also
has a section with repeating values which are similar but not identical to
the secondary.

Is there an easy way to move this data over? I tried using set field rules,
but it will only copy the first row of the repeating section. Is there a way
to loop while setting a field's value?