count preceding repeating fields (not groups/sections) - InfoPath Dev
in

InfoPath Dev

count preceding repeating fields (not groups/sections)

Last post 09-03-2012 05:02 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-01-2012 01:35 AM

    count preceding repeating fields (not groups/sections)

    Hi,

    I know how the workaround to get the position for a  row in a repeating group:

    count(../preceding-sibling::my:groupname) + 1

    But now I have a repeating field, not a group.
    Then I have an attribute "position" that I wanted to put formula in, but I didn'tget it to work if I just put:

    count(../preceding-sibling::my:fieldname) + 1

    Doesn't it work for fields? Or for attributes ?
    I will test further, but maybe someelse ran into this behaviour.

    Filed under:
  • 09-03-2012 05:02 AM In reply to

    Re: count preceding repeating fields (not groups/sections)

    How about this:

    count(preceding-sibling::my:fieldname) + 1

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.