Customer Portal

Automatic rownumber with reset on field

Comments 1

  • Avatar
    slechtaj
    0
    Comment actions Permalink
    Hi Daniel,

    There are multiple ways to do this.

    • If the your data is sorted you can use a simple CTL transformation that will assign the sequence numbers to records - you do not even need to use Clover sequences as this could be simply handled by simple integer variables.

    • If you don't have the data sorted, you might want to use another approach - Clover lookup tables might help you get this done. In the lookup table, you would just keep the keys with their latest sequences. If you need to keep the sequences between the graph executions, you might want to use persistent lookup tables.

    In the attached graph, there are example of both options prepared for your convenience.

    StringSeq.grf

Please sign in to leave a comment.