• Martin Lorenz
    April 5, 2017 at 6:14 am #4095

    I would like to ask, it is possible, adding rows in table on specific position using method appendElement({}) or some other? Default method appendElement({}), adds new row on last position in table but I would like to add new row for example on penultimate position. How I can do this? Please help.

    Christian Ohm
    July 21, 2019 at 5:36 am #5499

    I am facing the same issue. I haven’t been able to find any method that supports this?

    SPARK Support
    July 23, 2019 at 8:26 am #5500

    Hi Martin,

    When using the Table getData() method, an object of com.ibm.bpm.coach/List is returned.  As you can see from the following IBM documentation, under List Operations, only the add() and put() methods are offered:


    The add() method does not provide an argument for index, and places the new record at the end of the list.  The put() method does offer an index argument, but replaces the record at the indicated index.

    In order to effectively insert a record into a Table at a given position, the developer would need to create a new List, iterate through the original list adding the records to the new list until the desired position is reached, add the new record and continue iterating through the list.  Once the new list is created, the Table setData() method can be called to replace the underlying data set.


    Stephen P.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search