InfoPath Services Form Autogenerate Row Number - InfoPath Dev
in

InfoPath Dev

InfoPath Services Form Autogenerate Row Number

Last post 04-22-2009 09:53 AM by mcgovern001. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-22-2009 07:06 AM

    InfoPath Services Form Autogenerate Row Number

    Hello, I have inserted a Repeating Table in an InfoPath (2007) form that I am rendering on SharePoint 2007 as a web page. I would like to auto generate row numbers. position() is not compatible with InfoPath services. Does any one know an xpath formula I can use? I don't have access to a programing code editor.

     

    Thanks, Brian

  • 04-22-2009 07:54 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: InfoPath Services Form Autogenerate Row Number

    Hi,

    Depending on what you're trying to acheve you can use the count function instead:

    count(preceding-sibling::my:<RepeatingGroupNodeName>) + 1

    For example, this can be used to give a repeating table alternating-color rows

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 04-22-2009 09:53 AM In reply to

    Re: InfoPath Services Form Autogenerate Row Number

    Thank you.

     

    Brian

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.