Hi Folks,
I am trying to get the first column of a repeating table to enumerate the row number (1, 2, 3...) in a web enabled form. I have no problem in filler. I just use "position()" in an unbound calculated value field in column 1 of the repeating table. When rendered in the browser, each row just shows the number 1 over and over.
I saw this post: http://www.infopathdev.com/forums/p/7252/52515.aspx
...and was unable to make it work with "count(preceding-sibling::my:<RepeatingGroupNodeName>) + 1". I also went to the following link from that post: http://alecpojidaev.wordpress.com/2010/01/07/accessing-previous-rows-in-repeating-group-for-browser-enabled-forms/
...but when I tried to incorporate option number 2:
"preceding-sibling::my:MyRepeatingGroup[count(preceding-sibling::my:MyRepeatingGroup) = count(current()/preceding-sibling::my:MyRepeatingGroup) - 1]/my:FieldToAccess"
...the introduction of the code into the xpath box breaks binding and seems not to be able to see the previous siblings. I know that I must be doing something wrong.
Can anyone provide some insight?
Thanks and Regards,
Patrick