If you are using “clipboard” on Datatable and want to have it saved after a Copy&Paste action you can use this code.
$$(“myDatatable”).attachEvent(“onPaste”,
function(x){
$$(“myDatatable”).getSelectedId(true,true).forEach( function(id)
{ $$(“myDatatable”).updateItem(id, $$(“myDatatable”).getItem(id)); });
} );
(did not find in the help or forum, so i post it here
But this code works only if all the rows of the paste action are selected.
If the target rows are more (because of multiselct ) it does not work.
Do you have a better code snippet for that , that covers all cases of Copy&Paste in datatable?