Ticket T336736
Visible to All Users

Trying to remove the capability to save a persistent object and avoid any save confirmations with ModificationsHandlingMode.AutoRollback

created 9 years ago (modified 9 years ago)

[DevExpress Support Team: CLONED FROM S34255: Core - Support the capability to save all changes automatically (disable all confirmation requests)]
I have a problem AutoRoll back doesn't seem to work in my case, I'm trying to remove the confirmation because I don't want this object to be saved no matter what, I managed to remove save, save and close, save and new buttons but I can't manage to remove the confirmation message. this object is supposed to be like a calculator and it shouldn't be saved, and it inherits persistent class so I can't just make it non persistent.

Visual Basic
Partial Public Class UnBindCalculationSheetController Inherits ViewController Public Sub New() InitializeComponent() End Sub Protected Overrides Sub OnActivated() MyBase.OnActivated() Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ModificationsController).SaveAction.Active.SetItemValue("Can't Save", False) Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ModificationsController).SaveAndNewAction.Active.SetItemValue("Can't Save", False) Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ModificationsController).SaveAndCloseAction.Active.SetItemValue("Can't Save", False) Frame.GetController(Of DevExpress.ExpressApp.SystemModule.ModificationsController).ModificationsHandlingMode = ModificationsHandlingMode.AutoRollback End Sub
Show previous comments (3)
AS AS
Abdelrahman Saeed 9 years ago

    I will try to explain what I want to do, and if there is a better way than my solution I will be glad.
    I attached a picture that explains my goal

    AS AS
    Abdelrahman Saeed 9 years ago

      And this is the UI of the Calculation Sheet,
      Payments are created dynamically in this case and will not be saved in this View,
      it will be saved in the Mandate View, this view is just for calculating payments on the fly without saving

      DevExpress Support Team 9 years ago

        Thanks for the update. It still looks like the correct solution here is not to inherit the CalculationSheet class from LeasingFinancial, but to implement it as a non-persitent class. However, images you provided are insufficient to fully understand your task. A detailed description or a sample project would be better.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.