treetable form

I want combine this code

https://snippet.webix.com/2af45cd6 & https://snippet.webix.com/14166185

I want to change to treetable protoUI. And I coded like this

https://snippet.webix.com/x36t7u1l

I want to make treetable form to post to server.
but I still got error from getselectedID.
I really appreciate if anyone who understands and can complete the code that I made.

thx for answer.

webix.message accepts first argument as string (text) or object (config)
getSelectedItem always returns object (null, plain object or array)
so instead of getSelectedItem you need to use getSelectedId.
but getSelectedId returns object as well, if not forced to string.
in your case you need to call getSelectedId(false, true)
https://snippet.webix.com/rynu7jgj

thx very much, @intregal.
Now I can’t adding node child when clicking “Add to Selected Parent”.

I have read this
https://docs.webix.com/datatree__nodes_manipulations.html#addingnodes
but I don’t find any code related to my issue.

sorry, I have find the solution. I forgot to add this code

template:"{common.treetable()} #input#"

to related column :blush: