Standard Maintenace Form Buttons


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
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

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: 7K
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 Smile ... 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.

Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Thanks for the info.
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