clayfox,
thanks for the response.
I've been experimenting with a solution similar to your first option. My problem is how to create fields in the data source that will store values calculated in a repeating table. i.e. I could add a proxy field in the source for the 'Number required' field but how to make that take account of a repeating table that iterates 8 times?
It's probably a variation on the same question but is there any way to attach a field in the Main data source to a field in a secondary data source such that it would iterate the same amount of times as the secondary source repeating table and perform the calculation on each iteration.
Hoping my question is clear.
Thanks again for your response.





by: clayfoxPosted on 2009-08-07 at 07:52:46ID: 25043349
Ok.
By default only data in the main data source in any InfoPath form os saved in XML with the form. Secondary data sources are read-only.
You have two options.
Add fields to your form's data source and copy your calculated values into these fields and they will persist in your saved forms if that is what you need.
Or if you want to actually update the sharepoint lists with the data, you can submit data to them but it is a bit complex. You can search on CAML on www.infopathdev.com for more information.
Ultimately, SharePoint lists are not an ideal data source since they are flat and not relational. They also are limited in how you can pass data, especially back to them via a form. I recommend SQL if you are building an enterprise solution for performance and ease of development. www.qdabra.com has a packaged solution that gives you the ability to use webservices with both SQL and SharePoint lists.