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



New BO Property 'SetDirtyOnEdit'Expand / Collapse
Author
Message
Posted 10/07/2006 9:42:06 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 5:16:01 PM
Posts: 314, Visits: 1,290
I cannot find any documentation on this new property and have a question on how it's supposed to work with the Maintenance Form Toolstrip. When this property is set to 'True' (Default) and you click on edit button (IsDirty is set to True), New/Edit/Delete and Browse buttons are disabled, Save and Undo buttons are enabled and the save dialog is always displayed regardless if a change is made.

When SetDirtyOnEdit is 'False' and you click on edit, all the buttons on the toolbar are disabled and  'IsDirty' is only set when a value is changed. All the buttons remain disabled even if you change a value. 

Is there something I'm missing or is the intended behaviour? Shouldn't the toolbar buttons remain in their original state until a value is changed?

Post #3384
Posted 10/07/2006 10:21:04 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:14:29 PM
Posts: 4,901, Visits: 4,886
Is there something I'm missing or is the intended behaviour? Shouldn't the toolbar buttons remain in their original state until a value is changed?

This is the intended behavior.  It is not recommended to use the MaintenanceFormToolstrip in the manner.  Regardless, when you set the SetDirtyOnEdit to False, the EditingStateChange event will not fire the same way, which is the event that triggers the MaintenanceFormToolstrip to update itself.  The reason for this is because the IsDirty state is changing, but the EditingState was never modified.  When using the standard MaintenanceFormToolstrip and standard maintenance forms, it is recommended to leave this property alone if you want the MaintenanceFormToolstrip to manage itself.  Otherwise you can create your own MaintenanceFormToolstrip and manage the buttons yourself based upon your desired behavior and the IsDirty property.

Post #3385
« 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 6:11pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 10 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.