Hi, I’m trying to add a new item (row) in a table from an ItemSelected item in another table, altough in the new table there are just two fields (First name and Last name).
I’m waitting for answers.
Thanks
Hi, I’m trying to add a new item (row) in a table from an ItemSelected item in another table, altough in the new table there are just two fields (First name and Last name).
I’m waitting for answers.
Thanks
Ok.
So, what was the question?
Excuse me. How can I get name and lastname field from the row selected and insert them into new row (add item) in a different table ?
Thanks
With Table#getValue() you get the selected item’s id. With Table#getItem(Object) you can get an Item by it’s item-id. The you can create a new Item in the other Table using Container#addItem() (or any other appropriate method depending on the Container’s type) and fill it with the data retrieved from the first table.
Ok, thanks Tobias!.