• Mikael Eriksson
    June 16, 2016 at 6:28 am #2190

    I tried creating a coach with a table, backed with a list of a simple datatype (containing three string attributes).


    I wanted to add data to the table by using a boundary event going to a JavaScript node where I added a row to the backing list and then to a “Stay on Page”.

    This works when just adding data. But when removing data using the builtin remove button I got a strange behavour.

    If I had added data after the coach was first viewed and I removed items by repeatedly removing the first item it was not possible to remove the lats item in the list. This also gave a javascript error about index out of bounds.


    list.js?build=201603010311:9 Uncaught Error: Index 1 out of bounds for list size 1

    d.remove @ list.js?build=201603010311:9

    d.onclick @ BPMExt-Control-Table.js?build=201603010311:20

    Also, it seems that the tables getIndex() method gets out of sync. If I first have two rows in the table it gives 0 and 1 for the index. After adding one row the indexes are 2,3 and 4.


    Using the variant by adding rows by going  through the table view (with the appendElements method) works but I think there will be usescases when we want to leave the coach do do some processing to get a list item and then return to the coach.



    I have uploaded a sample twx to this dropbox:





    SPARK Support
    June 16, 2016 at 12:41 pm #2192

    Hey Mikael,

    Thanks for your question. After importing your TWX file, I experienced the same indexing issue that you did. The indexing getting off will also lead to the delete error you were experiencing. This is a bug, and we appreciate you finding it for us. We will have a fix in a future release of SPARK.


    Elliot P.

    Mikael Eriksson
    June 16, 2016 at 2:15 pm #2193

    That sounds good. 🙂

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