Dublicate row in datatable on button click

Hi. could you help with it?
in my code i create copy of row but it is empty

{
            view: "button", type: "iconButton", icon: "copy", id: "copy_campaign", label: "Clone", width: 90,
            disabled: true,
            click: function (id) {
              var table = $$('campaign_table');
              var items = $$('campaign_table').getSelectedItem(id);
              if (items.length === 0) {
                  webix.message("No selected campaign");
                  return false;
              }
              var copy = webix.copy(items);
              table.add(copy);
              table.refresh();

            }
          }

Hi,

getSelectedItem(true) returns an array of selected items. Try to use getSelectedItem without parameters or pass elements of an array into add() method:

http://webix.com/snippet/7e957e78

Thank you, Maria!!!