Can not save an updated uitable with editable column
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Lluis Roca
am 9 Apr. 2020
Bearbeitet: Ameer Hamza
am 9 Apr. 2020
I am using 2019b and I have an App Designer uitable with editable column. While I change a value it changes on the screen/GUI but not when I save it via a button. How can I solve it?
function saveDataButtonPushed(app, event)
global myData;
filter = {'*.csv'};
[file, path] = uiputfile(filter);
fullFileName = [path file];
writecell(myData,fullFileName,'Delimiter',';')
end
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 9 Apr. 2020
Bearbeitet: Ameer Hamza
am 9 Apr. 2020
I am not sure why you are defining a global variable. In App designer, you should directly use the properties of the app object to access data of uitable. See the attached file for an example of how to save csv file from uitable.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!