InsertAction (execute insert record activity)

Top  Previous  Next

 

InsertAction, VIRTUAL

The InsertAction method performs the necessary database insert operations when called. InsertAction returns Level:Benign to indicate successful a insert operation.

Implementation:

The TakeCompleted method calls the InsertAction method when Request is set to InsertRecord.

 

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 , ChangeRecord , DeleteRecord