Effacer les filtres
Effacer les filtres

Java Table Handle for Cell Edit

1 vue (au cours des 30 derniers jours)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy le 27 Juin 2012
Commenté : claudio le 20 Sep 2021
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 commentaire
claudio
claudio le 20 Sep 2021
https://undocumentedmatlab.com/articles/uitable-customization-report

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by