copy from UITABLE to clipboard not working
Show older comments
I have a UI table, I used to be able to copy from it to the windows clipboard, but now it no longer copies. I have absolutely no idea what has changed nor where to look for the problem. Any thoughts on where the problem might be?
thanks Greg
Accepted Answer
More Answers (3)
xi
on 25 Apr 2017
2 votes
You may want to change the uitable property of 'ColumnEditable' from true to false. When it is true, you can edit, but can't copy the whole table to clipboard (can only copy one cell at a time). When it is false, you can't edit, but can copy the talbe. I usually add a toggle button beside the uitable, so that users can switch between copy mode and edit mode. I'm not sure if this is the problem you encountered.
3 Comments
Walter Roberson
on 25 Apr 2017
Interesting, I did not know that.
Bruno Luong
on 30 Sep 2020
All my ColumnEditable is set to FALSE and I can't copy on clipboard, and this is on R2020b. So nothing is improved since 3 years and half.
Generally sometime my App just hangs. Frustrating. All the App business is still far from being mature for any production code.
Back to the GUI.
Subhamoy Saha
on 2 Oct 2020
Yes, changing editable mode will allow to select multiple cells but not help in copy the tabledata. Better to save the data using writetable at frequent interval (manually or using timer) to avoid loss of data. What I follow is to save the data as soon as it is updated. But might be not suiatable for very frequent table data update cases. Looking forward for better solution.
I was using GUIDE created GUI for controlling instruments and recording data. Currently tried to shift to appdesigner but it is too slow in calculation, plotting etc. Miles to go to be useful in reallife applications.
Feng
on 10 Oct 2019
1 vote
i also have this problem with 2019b. has anyone found a solution?
8 Comments
Luna
on 11 Oct 2019
2018b same here! Can we just do multiple editing just as we can do in an excel workbook?
I am absolutely sure that there is no built-in property or callback method for uitable to do it.
I searched FEX for it and couldn't find any helper functions to do that also.
Feng
on 11 Oct 2019
This is frustrating. I have tried many different ways but still can't get around this issue...
Feng
on 14 Oct 2019
Matlab has confirmed the function is missing for uitable and hopefully this will be addressed in the next release. in the meantime, use clipboard for it but i won't copy the format of the table.
Luna
on 16 Oct 2019
I think writing our own copy to clipboard function and calling it in cellSelectionCallback will solve. But I haven't tried yet. I will give a feedback asap.
gaoyi guo
on 22 Oct 2020
It is a crucial problem that the Clipboard fcn is unable to retain the format of data in uitable. Xlswrite may be the best workaround for now. But usually, I only need to copy the data so that I can paste them freely to Excel files.
Kent Schonert
on 13 Nov 2020
Feng, is there a bug report # or similair for the missing function?
I am using the latest patch for 2019b and it still does not work. 2014b works fine though. It seems that in order to support both versions I will need to detect if Matllab is > 2018b(?) and insert the a workaround.
Feng
on 13 Nov 2020
I got a workaround from mathworks. The person who solved this for me is:
Tej Patel
Mathworks Technical Support Department
good luck!
Nachiketa Chauhan
on 10 Sep 2021
Can you share the workaround?
Subramaniam Arasakesari
on 8 Dec 2020
0 votes
Feng / Tej,
I have the same issue. Can you share the work around.
Thank you
Subra.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!