| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > WindowManager > WindowManager Methods >====== InsertAction (execute insert record activity) ====== | [[init initialize the windowmanager object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[kill shut down the windowmanager object .htm|{{btn_next_n.gif|Next page}}]] | | || **InsertAction, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} 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 a virtual to complete an update form .htm|TakeCompleted]] , [[request database request .htm|Request]] , [[changerecord execute change record process .htm|ChangeRecord]] , [[deleterecord execute delete record process .htm|DeleteRecord]]