Inherits from the ModificationsController to implement ASP.NET specific behavior.
public class WebModificationsController : ModificationsController
Public Class WebModificationsController Inherits ModificationsController
The WebModificationsController adds the following functionality to the base ModificationsController:
When executing the Save Action, the Controller commits the changes made to the current object.
Save and Close Action
When executing the Save and Close Action, the Controller commits the changes made to the current object and then:
- if the current Detail View is opened from a nested View, it closes the Detail View;
- if the current Detail View is opened in the View mode and then is switched to Edit, closes the Detail View;
- if the current Detail View is opened by the New Action and CollectionsEditMode is Edit, it closes the Detail View;
- if the current Detail View is opened by the New Action and CollectionsEditMode is View, it switches the Detail View to the View mode.
You can, however, close the current View by handling the WebModificationsController.QueryCloseAfterSave event.
Rolls back the changes made to the current object (see BaseObjectSpace.Rollback). If the current object is a newly created object, it closes the View. Otherwise, it retrieves the object from the database again, and shows the View in view mode.
Overrides this method to check whether to update the Save, Edit and SaveAndClose Actions’ enabled state depending on whether the current user has permission to change the current object and on the mode in which the current View is displayed.
View and Edit modes are processed
The WebModificationsController.EditAction Action is added.