No - you want the name of the node above it.
--Philip
thank you, Philip. I get a message saying this: Invalid number of
arguments.
-->position(preceding-sibling::TouchItemNo)<-- + 1
The "TouchItemNo" is the name of the field in the repeating table I am
trying to get to number. Is that the same as the parent node?
:
Try this:
count(preceding-sibling::item) + 1
You will probably need to change "item" to the name of the parent node
of
the repeating row.
--Philip
Greg, that worked for the first item. But then when I click "insert
item,"
the number still comes up as the number 1, instead of the next
number
(in
this case 2).
:
If you are storing the number, set the default value formula to:
position()
If you are not storing the number, use an expression box with the
same
formula: position()
--
Greg Collins [InfoPath MVP]
Visit
http://www.InfoPathDev.com
I have a repeating table and would like the first column (I'm
calling
Item
No.) to automatically fill in with numbers in the order the items
are
entered.