Error on editing added binded item

Hello webix team,

I got error when editing a new added item in binded table. Here the snippet http://webix.com/snippet/3724257f . Try to select one of the above item and then click the button to add item on the bottom table. Then double click the id to edit.

The error in console says “Uncaught TypeError: Cannot read property ‘depends’ of undefined”

What did I do wrong?

Thank you

after a bit more testing, I realized if you edit the existing data id, the same error would be displayed in the console.

found a solution with a tricky one http://webix.com/snippet/574568e8
where every add should register a new id. But this means adding id directly to the data.

Is there any better solution?

id property is used to identify the record, so direct editing of id is not safe operation.

You can add an extra property, id of record which can be edited. So each record will have a true non-editable ID and some property which represents a visible ID, which can be changed.

http://webix.com/snippet/e503343a

well that makes a lot of sense. thank you for your explaination, maksim! have a good day!