Hope you're here, Gregg, you wonderfully helpful person! :)
I can't get either to work, and don't know what I'm supposed to do. here, hopefully, is a simplified explanation of what I'm trying to achieve, which ought to be "common":
* Web Service returning single dataset containing multiple tables
* TableA is the master (e.g. "Orders")
* TableB is multi-to-one detail (e.g. "OrderItems")
* Suitable key field linking the two (but note, no "relationship" in schema, for complex reasons --- don't know whether that is of any relevance).
Let's say, I want a form to allow adding/updating of Order, together with its OrderDetails. Two approaches seem possible:
1. [Currently adopted] I'll manage with assuming dataset will only return *1* row in TableA (for updating) [and all rows in TableB will be children of row in TableA]. Can't convince IP of this (it decides data table could have many rows), so have to define it as *repeating* section. OK. Then try to add TableB (also repeating section, this time required). If I place control *inside* TableA repeating section, IP complains about "control type mismatch" with red asterisk, whatever I do; although all seems to work, can't save form since error. If I drag TableB below TableA's repeating section that clears the error. But then nesting is wrong, and "Insert Item" will place multi Orders before all OrderDetails.
2. [Attempted] OK, perhaps this is a master/detail situation. I try TableA as master, with suitable deleting and recreating to make TableB detail via key field link. But then TableA *must* be represented by "Repeating Table" control, which is all wrong.
I'm trying (obviously) to achieve layout like:
Master
Field 1 Field 2
Field 3 Field 4
...
Children Detail
Line 1
Line 2
....
From one parent record, I may have several different "detail" tables, (each) with multi-rows (at present one, but there are further detail tables to include).
I might have a "search for record by key" control to pick master row to be updated, rather than a master *table* control. That causes row + child detail rows to be read, ready for update; then separate "Add New" button for adding new master row (clears out info there), together with whatever child detail rows required.
I hope all this makes sense. It seems to me a common situation.
Which approach *should* I be taking? Nested repeateds or master/detail? And why do neither of them seem to be right...? :)