When we insert a new order, it would be more convenient if the order remained selected and in edit mode.
In the Project Explorer, double-click on Orders / Actions / ag2 (Form) / a13 – Select, editForm1 when Insert action node.
![Action 'a13' of action group 'ag2' in the Orders controller. Action 'a13' of action group 'ag2' in the Orders controller.](/blog/2012/10/order-form-samplepart-15/image02.png)
Change the Command Name to “Edit”.
Property | New Value |
Command Name | Edit |
Press OK to save the action.
Press Browse and wait for the web application to load in your browser. Create a new order, and select a customer and employee. Press OK to save the order, and the form will stay in edit mode.
![Saving a new record will keep the form in edit mode. Order Details will appear below. Saving a new record will keep the form in edit mode. Order Details will appear below.](/blog/2012/10/order-form-samplepart-15/image04.png)