Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid: Detection of new or modified record in onEditComplete

    Hi,
    I have a ListGrid managed only locally. I want to recover the edited or created rows. So I use the onEditComplete which is triggered after listGrid.saveAllEdits(); Everything is find BUT I don't know how to make the difference between the modified record and the new ones.
    If someone could help?

    Regards

    Alain

    Code:
    public void onEditComplete(EditCompleteEvent event) {
    	int rangee = event.getRowNum();			
    	Map lesValeurs  = event.getNewValues();				
    	String newLibelle = (String) lesValeurs.get("libelle");
    	String newcode =(String) lesValeurs.get( "code");
    	Date newDebut =(Date) lesValeurs.get( "dateDeDebut");
    	Date newFin = (Date) lesValeurs.get( "dateDeFin");
Working...
X