OK; I'm starting a new post as I'm trying this method now. I have been going through the instructions and I'm getting stuck on page 14/15 where we need a rule to set the ID. I have entered the formula:
SharePointListItem_RW[number(Count)]/ID
as well as
SharePointListItem_RW[number(Count)]/@ID
Where SharePointListItem_RW was selected from the template as the repeating table, Count was selected from the xml file and ID was selected from the SP fields. Wasn't sure if I was supposed to leave the @ in there. Here is the XPath for the first formula:
xdXDocument:GetDOM("Approvals")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[number(xdXDocument:GetDOM("ViewOptions")/Util/fields/Count)]/xdXDocument:GetDOM("Approvals")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ID
The error I am getting is:
Node-test expected.
xdXDocument:GetDOM("Approvals")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[number(xdXDocument:GetDOM("ViewOptions")/Util/fields/Count)]/-->xdXDocument:GetDOM<--("Approvals")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ID
Not sure what to do from here. BTW I am using InfoPath 2010.
Thanks!