6 Replies Latest reply on Nov 19, 2009 6:23 PM by Kurt Renfro

    Need help re-numbering table rows

    Kurt Renfro Level 1

      I have dynamic table set-up to adds rows via the instance manager.

      Each table row has a button to delete that specific instance.

      The problem I’m having is that if a row is deleted in the middle of the table, the rows don’t re-number.

      For instance, if the table has rows numbered 1, 2, 3 & 4 and row 2 is deleted, I want

      the rows to be re-numbered as 1, 2 & 3. Instead, what I end up with is rows 1, 3 & 4.

      The script I’m using to number the rows is:

       

      this.rawValue=this.parent.index+1

       

      I’ve read in other posts that this script used in a table will automatically update the

      row numbers if a row is deleted.

       

      For some reason it’s not working for me.

       

      Any suggestions.

       

      Thanks!