-
If you put the repeating Approvals group in its own non repeating group, then modify your Insert command to use that as the parent, you won't have to worry about this. I've emailed your form back to you with this change in place.
-
So the error is probably going to be occurring on the rule that inserts the nodes into the main data source? Can you just move your new group up in the main data source? I could offer more concrete help if I could see what was up, but working blind means I have to guess. :-}
-
Try using relative XPath in places you currently have absolute:Year = xdXDocument:GetDOM("Approvals")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Year[../d:ID = current()/my:myID]
-
Well, you could try the translate function and replace the space character with the period.
translate(Insert Field or Group, " ", ".")
Use the Insert Field or Group button to navigate to your field with your name in it.
So you know, this has the potential to be fragile, depending on your environment - if someone has a name ...
-
Give me the sample XPath you are using to set one of the values in your form - perhaps I can see from there.
-
Do you have SQL server installed on your server?
-
Any chance you can attach your template to a reply? Under the Options tab.... then I can maybe see what's up?
-
When you select Insert Field or Group from the formula editor, you should see a filter button on the bottom of the dialog that opens to allow you to select a node or group. This is present in all versions of InfoPath.
Is there a reason you can't add a field named "Count" to your main data source? At any rate, from your previous ...
-
The [ ] square brackets indicate a filter, so you are basically taking your full XPath to your field, and adding a filter to it (saying, out of all the d:ID nodes, I'd like this one). In this instance, you are using a number - when the value from the other field is returned, it will be a number like 1, 2, 3.... so you are directly indictating ...
-
Hey there:
Try this:xdXDocument:GetDOM("Approvals")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[number(xdXDocument:GetDOM("ViewOptions")/Util/fields/Count)]/d:ID