Sorry - it is my terminology that I think is confusing :-).
You've got a field called TouchItemNo. What you need is for the position
calculation to refer to the GROUP that contains TouchItemNo.
If you are still struggling, open the Purchase Request sample that comes
with InfoPath. The equivalent to TouchItemNo is the Item Number in the
itemized list. The group that contains itemNumber is called item - you need
to put in the name of the group that contains TouchItemNo.
Hope that helps a bit more.
--Philip
> Okay, so the node above it will just have a default value of 1. But since
> it's a repeating table, there is no "second node". Should I create a
[quoted text clipped - 43 lines]
>> >> >> are
>> >> >> entered.
Philip, I looked at the Purchase Request template, but I noticed that the
field "Item Number" field does not number itself as I add items to the list.
I tried this function, but got errors: position(preceding-sibling::group2)
+ 1
I also tried count(preceding-sibling::group2) + 1 did not work
Thanks for putting up with me.
> Sorry - it is my terminology that I think is confusing :-).
>
[quoted text clipped - 57 lines]
> >> >> >> are
> >> >> >> entered.
Greg Collins [InfoPath MVP] - 28 Mar 2006 00:52 GMT
position(preceding...) is definitely wrong. Position doesn't take any parameters. You definitely want to use count().
You likely need to discover the correct XPath. It could be:
count(../preceding-sibling::group2) + 1
or something else based on the schema you have. An understanding of XPath and the current location the path is starting from will make things easier.

Signature
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com
Philip, I looked at the Purchase Request template, but I noticed that the
field "Item Number" field does not number itself as I add items to the list.
I tried this function, but got errors: position(preceding-sibling::group2)
+ 1
I also tried count(preceding-sibling::group2) + 1 did not work
Thanks for putting up with me.
"Philip Colmer" wrote:
> Sorry - it is my terminology that I think is confusing :-).
>
[quoted text clipped - 63 lines]
> >> >> >> are
> >> >> >> entered.