` Printed Icetips Article

Icetips Article



Par2: Edit in Place -- "Accepted" embed
1998-06-22 -- Rick Martin
 
> I'm trying to enter some code that would normally go in the ACCEPTED
> embed for a standard entry control.  With an edit in place field,
> however, the only place I have found to insert my code is in the
> TakeEvent embed for the field.

Try this code instead.
If RerturnValue = EditAction:Complete
  your code here
End

Be sure to put this in the TakeEvent method for your field with a priority
greater than 5000.  This will allow the default action for the field to
occur.

---------------------

Mike Hanson adds:

CASE ReturnValue
    OF EditAction:None OROF EditAction:Cancel
ELSE
    !You can assume ACCEPTED here
END!CASE

Again, this must be after the call to the PARENT.TakeEvent.  In my
SuperBrowse I've encapsulated this test and created a TakeAccepted
virtual method.  Catch you later!



Printed May 4, 2024, 6:44 pm
This article has been viewed/printed 35114 times.