필터 지우기
필터 지우기

Java Table Handle for Cell Edit

조회 수: 1 (최근 30일)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 6월 27일
댓글: claudio 2021년 9월 20일
I am using Java Handle for uitable by declearing as
jtable = uitable('v0',1,'Parent',f)
In order to check the invalid entry from the user, i need the previous data and new data entered by the user. how to get the revious data for the edited cell. I tried with matlab event.PreviousData for the uitable it is not working.
I declared a function jatble.DataChangedCallback = @myDataChange_Callback.
function myDataChange_Callback(mtable, eventdata)
eventDetails = eventdata.getEvent;
modifiedColIdx = eventDetails.getColumn;
modifiedRowIdx = eventDetails.getFirstRow;
jtable.getValueAt(modifiedRowIdx,modifiedColIdx);
end
I am able to get new data but old data was lost. Can some one help me.
  댓글 수: 1
claudio
claudio 2021년 9월 20일
https://undocumentedmatlab.com/articles/uitable-customization-report

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by