BPM, Workflow, and Case

 View Only
  • 1.  IBM BPM Table Auto Increment Number

    Posted Wed March 20, 2024 03:23 AM

    I have an IBM BPM Table in one of my coach views that has two columns: "No" - Integer and "Description" - String. I need to implement the functionality to increment the No when the user adds a row to the table using the table's default + button. Also, I need to implement the functionality for deleting a record using the table's default 'Delete' icon. After deleting a middle record from the table, the numbering should be corrected by the table itself.



    ------------------------------
    Sadun Lakshitha
    ------------------------------


  • 2.  RE: IBM BPM Table Auto Increment Number

    Posted Thu March 21, 2024 07:21 AM

    Hi Sadun,

    The number field is part of the data structure bound to the table, I assume.  In this case, I would do this in a data-driven way.  In the Data changed script of the activity in the diagram, react to the list data changes and fix up all "number" fields in the list by iterating through the list.  New items would get their null value populating and incorrect numbers would be updated.

    Hope this helps,

    Grant.



    ------------------------------
    Grant Taylor
    ------------------------------