User Tools

Site Tools


saveonchangeaction_execute_change_record_process_and_remain_active_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== SaveOnChangeAction(execute change record process and remain active) ====== Previous pageReturn to chapter overviewNext page

SaveOnChangeAction, VIRTUAL

blk2blue.jpg

The SaveOnChangeAction method performs the necessary database change or update operations when called. SaveOnChangeAction returns Level:Benign to indicate a successful change operation.

Implementation:

The SaveOnChangeAction method is called by the TakeCompleted method when Request is set to SaveRecord and OriginalRequest is set to ChangeRecord.

Return Data Type:     BYTE

Example:

WindowManager.TakeCompleted PROCEDURE

 CODE

 SELF.SaveHistory()

 CASE SELF.Request

 OF InsertRecord

   RETURN SELF.InsertAction()

 OF ChangeRecord

   RETURN SELF.ChangeAction()

 OF DeleteRecord

   RETURN SELF.DeleteAction()

 OF SaveRecord

    CASE SELF.OriginalRequest

    OF InsertRecord

       RETURN SELF.SaveOnInsertAction()

    OF ChangeRecord

       RETURN SELF.SaveOnChangeAction()

    END

 END

 RETURN Level:Benign

See Also:     TakeCompleted , Request

saveonchangeaction_execute_change_record_process_and_remain_active_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1