I am trying to merge forms together to create somewhat of a project summary.
In the merged form, I want to group all the Projects with all the associated tasks.
I expect the final form to appear somewhat like:
<Project> *Repeating
<Tasks></Tasks> *Repeating
</Project>
The closest example I could find was here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab11.aspUsing this example, I created sample form1 as:
<Customer>Cust1
<Name>123<Price>....
Sample Form2:
<Customer>Cust2
<Name>456<Price>...
Sample Form3:
<Customer>Cust1
<Name>abc<Price>...
Upon merging:
I get a section created for Cust1 as expected from Form1.
I get a section created for Cust2 as expected from Form2.
From Form3, I expected to have the Name, Price, etc. added to the section created by Form1, but it creates a blank section to which it appends the Form3 data.
If I were to add a form4 for Cust2, the details would be appended to the blank section with the Cust1 data... and so on.
So, it appears that the code, in the instructions, for adding the details to a defined section is incorrect (or I am missing some detail).
Here is the section I refer to:
for(var j = 0; j < oSrcItems.length; j++)
{
var oSrcItem = oSrcItems.nextNode().cloneNode(true);
oTrgCustomer.selectSingleNode("my:itemsContainer").appendChild(oSrcItem);
}
Being a newbie, I have sadly been unable to fix this.
Please show me the err of my ways.