EditingState not changing after save


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I'm probably doing something wrong here, but I have a BO which is managed by a user control I've created to handle the add/edit/save/undo events for BOs...I have to capture the EditingState of the BO after a save is done so that I can toggle the buttons.  It's supposed to work much like the maintenance form toolstrip you guys created.  I can add a new one, save it, and that works fine.  But when I edit and then save, the EditingState is staying at Editing and it should be going to Idle.  I have stepped through the code and after the save occurs there are no broken rules and the save returns Success, so I would think the EditingState should also have changed to Idle.  Is there something I'm possibly not doing correctly here that could be keeping the state from changing?? 
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Is there something I'm possibly not doing correctly here that could be keeping the state from changing?? 

I guess it would depend on how the BOs are being used.  If the BOs are being translated from the parent to the child through the BOTranslations property then there are probably some other things that could play into this.  But the first thing I would do would be to create a simple test form (not user control) and just drop on a BO and your same Add/Edit/Save logic to see if you can reproduce.  If so, then can you send a simple sample so that I can take a look at your logic?  It might be faster than going back and forth over the forum a number of times Smile

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search