ModificationsController.SaveAndNewAction Property
Provides access to the ModificationsController‘s Save and New Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
SingleChoiceAction | A SingleChoiceAction object that is the Save and New Action. |
Remarks
Use the Save and New Action to commit changes made to the current Detail View’s object, create a new object, and display the object in a new Detail View form. The ChoiceActionBase.Items collection contains elements from the NewObjectViewController.NewObjectAction‘s Items
collection. The default selected item corresponds to the current View’s object type.
Note
In ASP.NET Web Forms applications, the New Action’s Items
collection only contains items that correspond to the current View’s object type and its descendants. Therefore, the Save and New Action also contains only these items. To create an object of a type listed in the Application Model‘s IModelCreatableItems node, use the WebNewObjectViewController.NewRootObjectAction
(NewObjectViewController.NewObjectAction).
Use the SaveAndNew
protected method of the ModificationsController to handle the Save and New Action’s Execute
event.
The Save and New Action is active when the current View is root and in edit mode. In addition, the active state depends on the NewObjectViewController.NewObjectAction‘s active state. When the New Action is disabled, the Save and New Action is disabled as well.
Information on the Save and New Action is available in the Application Model‘s IModelActionDesign node. To access it, use the Model Editor.