Mikael ErikssonJune 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).
This works when just adding data. But when removing data using the builtin remove button I got a strange behavour.
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 SupportJune 16, 2016 at 12:41 pm #2192
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 ErikssonJune 16, 2016 at 2:15 pm #2193
That sounds good. 🙂
You must be logged in to reply to this topic.