I have a situation where I need to created the following using nested repeating sections and/or tables:
1. Main Item One
1.1 Sub Item One
1.1.1 Sub Sub Item One
1.1.2 Sub Sub Item Two
1.2 Sub Item Two
1.2.1 Sub Sub Item One
2. Main Item Two
2.1 Sub Item One
I have no problem creating the numbering for the Main item level using an expression box with the value of concat(position(), "."). As soon as I step into the a sub level I have no way of referencing the level above. I have attempted to replace the expression box with a text field using the same position function as the default value but it always returns a value of one no matter how many rows are added. I have not been able to find any examples of this here or anywhere else. As the position() function does not allow for the passing of a value so that it would work as followings: concat(position(..), ".", position(.), "."), I am at a lost.
When suggesting a solution, please consider the following:
I would prefer being able to save the outline numbers with the xml data, hence I would like to avoid using the expression box control if possible,
I am using InfoPath 2007, and
Visual Basic as the programming language.
Any suggestions would be appriecated.
Thanks in advance!