Can not save an updated uitable with editable column

조회 수: 1 (최근 30일)
Lluis Roca
Lluis Roca 2020년 4월 9일
편집: Ameer Hamza 2020년 4월 9일
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

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 9일
편집: Ameer Hamza 2020년 4월 9일
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개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by