DisableCancelButton (prevent cancel after save)

Top  Previous  Next

 

 

DisableCancelButton

BYTE

The DisableCancelButton property when set to TRUE (1) causes all buttons with the PRIVATE Action property set to RequestCancelled to be disabled when a record is saved.

Implementation:

 CODE

 IF SELF.DisableCancelButton

   LOOP I = 1 TO RECORDS(SELF.Buttons)

     GET(SELF.Buttons,I)

     IF SELF.Buttons.Action = RequestCancelled

       SELF.TakeDisableButton(SELF.Buttons.Control, False)

     END

   END

 END

See Also:     TakeDisableButton