Auto Increment a number in a Repeating Table - InfoPath Dev
in

InfoPath Dev

Auto Increment a number in a Repeating Table

Last post 08-27-2005 07:50 AM by Kiptodd. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-19-2005 10:24 AM

    • rmadho
    • Not Ranked
    • Joined on 06-01-2005
    • USA
    • Posts 3

    Auto Increment a number in a Repeating Table

    Does anyone know how to auto increment a number in a Repeating Table?
    For example, I started a blank form and place a Repeating Table on the form. When I preview the form, I want the default be a number and when I click insert to insert a new row, I want the next value to be incremented by 1.

    Thanks

    Rodney
  • 07-19-2005 10:43 AM In reply to

    Re: Auto Increment a number in a Repeating Table

    Hi Rodney Madho,
    There is a very good tutorial by Greg explaining this.
    http://infopathdev.com/howto/tutorials/default.aspx?i=d663d7df90e94e65abb02632966e8127

    Check out if that Helps!



    Agni
    InfoPathDev India
  • 07-19-2005 02:08 PM In reply to

    • rmadho
    • Not Ranked
    • Joined on 06-01-2005
    • USA
    • Posts 3

    Re: Auto Increment a number in a Repeating Table

    The example on that site was exactly what I was looking for.

    Thanks
    Agni

    Rodney
  • 08-17-2005 06:32 AM In reply to

    • BrownR
    • Top 200 Contributor
    • Joined on 08-14-2004
    • USA
    • Posts 54

    Re: Auto Increment a number in a Repeating Table

    This is what i also need to do. I have a text box in a repeating section, but when i add the code (
    count(../preceding-sibling::my:Row) + 1
    ) I get an error.

    "../preceding-sibling::my:Row" does not point to a valid location path of a field or group.

    I feel like i need to change the my:Row, but i dont know to what.
  • 08-18-2005 06:35 AM In reply to

    Re: Auto Increment a number in a Repeating Table

    Hi,

    You have to put the name of your reapeating section!

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 08-27-2005 07:50 AM In reply to

    Re: Auto Increment a number in a Repeating Table

    I am new to Infopath and was hoping someone could send me a sample form of how to apply the formula.
    1. how to set up repeating rows for this formula to work.
    2. how to create the my:Row, my:number etc. ..

    If I have a from that follows count(../preceding-sibling::my:Row) + 1
    I think I can learn from that.

    [email protected]

    Kip

    Kip Bautista
    KTB Dezines
    [email protected]
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.