Cancelling update in browse cell

iponomarenko

New Member
Hi all,

I would like like to cancel changes in a browse cell by clicking a cancel button or using the escape key, but I can't figure out how to do it. Any Ideas ?

Thanks !
 
You did not declare what version this is for, though for a generic answer for a GUI environment make this fit:

You need a localVariable to store the original displayed data, or direct access to database field / smart row object temp table value which ever method this is cField. Populate cField when U display the value in the browser
Then on a trigger for the action you require to catch (cancel button or using the escape key) simply assign the SCREEN-VALUE of the browse column to be cField, this will undo any changes the user has made.
Good look.
BFN
 
Thanks, that should work, I come from .NET and was expecting some kind of event, in wich I could have cancelled the changes.
By the way, I'm using V. 10.1.C but develloping with appbuilder and proc editor.
Thanks again.
 
Back
Top