Friday, December 12, 2014

Re: GWT CELLTABLE How to restore old value in cell if validation fails

Hi Vaibhav,


public void update(int index, RecordInfo object, Stringvalue) {
// Called when the user changes thevalue.
if(value.matches("(-)?(\\d){1,8}")){
object.setColumnInRecordEdited(true);
object.setValue(value);
RecordData.get().refreshDisplays();
}else{
Window.alert("Specify valid integervaluefor parameter");
// How to restoldvaluehere? currently updatevalue

}
}
});

I guess you have got ur answer for this question.

I didnt get exactly identify what u did to solve this problem.

Can you provide your code snippet wat u used to clear the values,

Thank you in advance.

Regards,
Nagarajan



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment