Repeat Table Question - InfoPath Dev
in

InfoPath Dev

Repeat Table Question

Last post 05-06-2010 05:14 AM by sdy731022. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-05-2010 01:55 PM

    Repeat Table Question

    Hello all,

     

    I was trying to create a repeat table with auto rowid increasement . So I created a repeat table with two columns (Index_Count,field) and assign the default value for each column with the following formulas :


    count(preceding-sibling::*/Index_Count) + 1
    count(preceding-sibling::*/field) + 1

    Once I previewed the form, the first column value can increase value after inserting . But second column value
    will always keep same value(1).

     Any suggestions would be appreciated. Thanks.

     

  • 05-05-2010 10:59 PM In reply to

    try

    count(../preceding-sibling::*) + 1

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 05-06-2010 05:14 AM In reply to

     Great. It works. Thanks a lot for your help.

     Do you have any idea why the first one works but second not by using this formula ?

    count(preceding-sibling::*/Index_Count) + 1
    count(preceding-sibling::*/field) + 1

     

     

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