Edit level mismatch in AcceptChanges occurs in 3.51 Project Tracker “New Project” Action

Edit level mismatch in AcceptChanges occurs in 3.51 Project Tracker “New Project” Action

Old forum URL: forums.lhotka.net/forums/t/4894.aspx


Stanomatic posted on Sunday, May 25, 2008

Hello All,

 

I have created a project CD Library app which closely resembles ProjectTracker PT. I didn’t want to sway far from PT code to avoid errors. I have a Disc object with a Serial Key child list object. Upon saving I received the “Edit level mismatch in AcceptChanges”.

 

I thought to myself I must have different code from PT. I decided to debug PTWin and add a “New Project” from the menu to simulate what my code was doing. I assigned a new resource, and filled in the rest of the controls and then clicked ok. The code throws “Edit level mismatch in AcceptChanges”.

 

I have done my best reading all researched “Edit level mismatch in AcceptChanges” in forums.

 

http://forums.lhotka.net/forums/thread/23752.aspx

 

http://forums.lhotka.net/forums/2/20590/ShowThread.aspx

 

And more… but they deal with a prior code base.

 

Again, I am trying to understand the problem and maybe even a solution but in the mean time if someone beats me to fixing the example code I would certainly appreciate it.

 

Thank you, in advance, for the help.

 

Stan

rkelley replied on Monday, May 26, 2008

Stan,

The first post you referred to is on the same code base that you are on and I am getting similar errors, I am working now trying to dig into it deeper to see what I can find. I am fairly sure that Rocky is aware that there are some issues and he is also working on them.

One thing to do is to try and get the edit levels for your objects out so that you can tell where you are off at. If I am not mistaken, the root object should be 1 more than the children?

Stanomatic replied on Tuesday, May 27, 2008

Hello RKelley,

 

Thank you for the reply. I will dig deeper with your suggestions.

 

I appreciate all of Rocky's work and the rest of the community. I use a playground application to get familiar with CSLA. Version 2.0 works BUT I of course wanted to jump on the latest 3.51 code base to start learning the upgraded framework. My plan is to become comfortable with 3.5+ and then implement into production.

 

Have a great day!

Stan

 

Copyright (c) Marimer LLC