Option in Form to always stay in edit mode.


Author
Message
George Nentidis
George Nentidis
StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)
Group: Forum Members
Posts: 72, Visits: 251
It would be nice if the StandardForm had some kind of a boolean property to always stay in edit mode. Now after Save, the form always returns in ReadOnly mode until you press (or call) Edit again. Being the form in ReadOnly mode looks strange to our customers, since they have used forms to be editable. So we always have to call Save and Edit together. This sometimes messes with the focus of controls and we have to write the same code all over again in all our forms.

It would be nice if this was an option.

Thanks

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
You could probably do this now. The editing state is really just a UI thing. If you set all the bound controls to IgnoreManageReadonlyState = True and used your own toolstrip with save/undo/delete that called the methods on the BO (not the form) I'm guessing you'd be pretty close. You'd probably want to handle the IsDirtyChanged event (which I think is newish..couldn't find it in the SF source I have) to update your toolstrip buttons. At least this is what I'd try.



Of course, this doesn't negate the enhancement request, just some thoughts if you need this NOW. BigGrin
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You can also set the BO property ManageReadonlyState to false versus each of the bound controls, but if you only want to keep one or two controls in edit mode, then you could use the IgnoreManageReadonlyState property of the control.

In our medical software the fields are always enabled and we use the IsDIrtyChanged event of the BO to enadle or show the Save/Undo buttons.

George Nentidis
George Nentidis
StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)StrataFrame User (136 reputation)
Group: Forum Members
Posts: 72, Visits: 251
Ok, this worked really nice

Thank you.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Glad to hear it Smile
StarkMike
StarkMike
StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)
Group: Forum Members
Posts: 436, Visits: 944
How does changing the ManageUIReadOnlyState effect the EditingState Property? From my initial testing it seems like the EditingState doesnt change after ManageUIReadOnlyState is set to False.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
It doesn't.  It just doesn't update the readonly or enabled state of the controls when the editing state changes. 

If you want to know when a user enters a value, you can still handle the EditingStateChanged event...but better yet, use the IsDirtyChanged event.

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