Autonumber in a repeating section - InfoPath Dev
in

InfoPath Dev

Autonumber in a repeating section

Last post 05-19-2011 12:00 PM by Timberhawk. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-19-2011 10:37 AM

    Autonumber in a repeating section

    Hi all. I have a form with a repeating section. I'd like to have each child section autonumbered. I have tried "count(preceding-sibling::fldCNumber) + 1" in the default value and get an error ("...does not point to a valid location path of a field or group.") and trying variations only gave me different errors. What am I missing? Thanx
  • 05-19-2011 11:01 AM In reply to

    Re: Autonumber in a repeating section

    Hi Timberhawk,

    Probably your xpath is incorrect. Go to the main data source and right click on the node for the fldCNumber and choose copy xpath. Paste that into notepad and inspect it. Probably need to add a my: namespace or something. Also, you may want to look at the Count(), Position() and Current() functions in xpath. Best of luck. 

    Patrick Halstead
    Project Manager at Qdabra
  • 05-19-2011 12:00 PM In reply to

    Re: Autonumber in a repeating section

    Patrick, this is what I ended up with. count(preceding-sibling::my:Sheet/my:Children/my:Child_Headings/my:Child/my:fldCNumber) + 1 I still received "preceding-sibling::my:Sheet/my:Children/my:Child_Headings/my:Child/my:fldCNumber" does not point to a valid location path of a field or group Thanx
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.