StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Standard Maintenace Form ButtonsExpand / Collapse
Author
Message
Posted 10/25/2006 5:01:31 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
I am using a standard maintenance form,  when the primary bo's setdirtyonedit is set to true everything work fine, if I change the setdirtyonedit to false when I go into edit mode the save and undo button are disabled (all buttons are disabled).

Scott

Post #3850
Posted 10/25/2006 5:11:51 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
If you change the SetDirtyOnTrue to False the MaintenanceFormToolstrip will not behave properly any longer.  This is by design.  This is due to the lack of events that get raised...primarily the EditingStateChanged event.  So the toolbar is actually behaving properly since it goes off of the editing state of the BO...however, just changing a field will make a BO dirty, but it does not raise the EditingState event and it would be difficult to know without creating a lot of overhead. 

Just so this makes a little more sense and you reply asking if we could just raise the EditingStateChanged event as soon as someone changes a field within a row ... the answer is that if you look at the IsDirty property in code, we are just looking at the current row to see if it has been modified.  This is not an internal counter within the BO itself...that is why it would require a lot of overhead in order to trap a changed field value and then raise the BO event.  In this scenario it is generally best to create your own toolstrip if you are going to take this approach.

Post #3851
Posted 10/25/2006 7:50:42 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
Thanks for the info.
Post #3853
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:07pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 13 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.