| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > WindowManager > WindowManager Methods >====== SaveOnInsertAction(execute insert record activity and remain active) ====== | [[saveonchangeaction execute change record process and remain active .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setalerts alert window control keystrokes .htm|{{btn_next_n.gif|Next page}}]] | | || **SaveOnInsertAction, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **SaveOn****Insert****Action **method performs the necessary database insert operations when called. **SaveOn****Insert****Action** returns Level:Benign to indicate a successful insert operation. **Implementation:** The SaveOnInsertAction method is called by the TakeCompleted method when Request is set to SaveRecord and OriginalRequest 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]]