Numbered rows in a repeating table - InfoPath Dev
in

InfoPath Dev

Numbered rows in a repeating table

Last post 04-27-2006 11:45 AM by Fast Flare. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-27-2006 09:11 AM

    Numbered rows in a repeating table

    I have a repeating table that needs to return the number of the row along with the data associated with that row. I currently use an expression box with a position() method in the formula box. This works fine, but I have to store the row number along with the data in that row. I changed the expression box to a text field, but the position() method doesn't work. All I get is a "1" in every row. It seems to me there has to be a simple solution to this, but I can't seem to find it!
  • 04-27-2006 10:17 AM In reply to

    Re: Numbered rows in a repeating table

    Hi Tracy,
    Am I correct to assume that you're trying to do this without writing any code? If you are writing some code, you can refer to the Asset Tracker sample that ships with InfoPath. If you are trying not to use code, you should be able to create a rule that increments a counter stored in a secondary XML data file (data connection) and refer to that field when a new row is added.
    Patrick Halstead
    Project Manager at Qdabra
  • 04-27-2006 10:34 AM In reply to

    Re: Numbered rows in a repeating table

    This also might be useful:

    http://infopathdev.com/howto/tutorials/default.aspx?i=d663d7df90e94e65abb02632966e8127
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 04-27-2006 11:19 AM In reply to

    Re: Numbered rows in a repeating table

    Thanks, Patrick, I've tied the text box field to the external data file. It works somewhat, but all I get is a number 2 in every box. I'm sorry, I don't know much about Xpath, what would be the formula I would use?
  • 04-27-2006 11:45 AM In reply to

    Re: Numbered rows in a repeating table

    Thanks, Matt! It works!
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.