Ticket Q391289
Visible to All Users
Duplicate

Save action disabled because of "Is Modified" - caused by ListViewAutoCommitController

created 13 years ago

I have a situation where I have a Nested list View inside a detail view. My List View is editable. I also have a controller derived from ListVewAutoCommitController that will commit my parent objects space whenever a list item is edited and the user selects a different row.
Problem:
When the user does make an edit in my list view and moves out of the record to a different object in the list, both my nestedobjectspace and me parent objectspace are committed successfully (using my controller described above.
However when a user makes a change in a listview item and then clicks the Save action (rather than moving up or down to the next record an exception is thrown as follows:
An error with number 1007 has occurred.
Error message: Unable to execute disabled or inactive action Save. Disable reasons: Is modified, inactive reasons:
This disable reason does not sohw in my model so I am guessing the disable reason "Is Modified" reason is part of the default XAF validation rules. In any case why would an "Is Modified" reaon disable a Save action as the whole purpose iof a save action is to save modified objects?

Show previous comments (1)

    Please see the attached project.
    Add a new Estimate object and commit it.
    Open the new Estimate object in a detailview.
    Add a new Estimate Section in the Nested ListView. This should auto commit because of the ViewController in the project.
    Edit the name of the new EstimateSection object in the Nested List View.
    BEFORE tabbing or clicking outside of the Name property in the ListView, click the Save action and the Error message listed above will be thrown.

      (Title updated)

      DevExpress Support Team 13 years ago

        Hi Kerry,
        The ListViewAutoCommitController is not designed to operate in nested list views. Please refer to ticket Q390724 (Error 1007 with ListViewAutoCommitController when clicking an Action that gets disabled during the commit operation).
        Thanks,
        Michael.

        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.