Community

How can auto increment column table ?! Answered

Hello,

How can auto increment the column of table in document difinition.

For example, i want to increment the first column "identifiant", by 1, 2, 3 ...

Can you help mee please. 

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Adrian Enders

    Why would you want to do this? You can write a custom script to do it, but I would not want to do this here in the verification station. is it for the export of data? Or do the operators need to see this for some reason?

    1
  • Avatar
    Alae Rahmani

    Hello Adrian, 

    Thank you for your reply.

    in fact, I have a requirement to fill the first column with auto increment.

    Actually I want to do it with a script, but I don't know exactly the syntax for foreach on each line of the table, and insert the incremented number in the desired column.

    foreach (IField field in Context.Field("ItemTable").Rows) <= the Foreach is correct ?

    {

       ...... how to retrieve the desired column?

    }

     

    Best regards.

    0

Please sign in to leave a comment.