You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a dumb question. I was just coding a UI with a CSLA biz obj. Simple edit form where I'm doing BeginEdit / AcceptEdit / CancelEdit.
There is a scenario where the object might come into the screen already in a obj.IsDirty == true state.
In that scenario the changes were not made on this form but:
the save button on the form is lit up
the cancel button prompts user to be sure they want to throw out their changes
Example:
Start with ParentObj.ChildObj
Enter edit screen for ChildObj and do some edits
Click 'OK' button (e.g. AcceptEdit - but no save to db yet because that happens for parent)
Enter edit screen for ChildObj - do no changes (save is lit up)
Click 'Cancel' button (e.g. CancelEdit works fine but user gets prompted first)
I figured I would come here and wonder aloud whether it would be do-able to have a feature where you could test .IsDirty on an object as it relates to changes made after a .BeginEdit() was called? Something like .IsDirtyForCurrentEditLevel
Anyone ever dealt with that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Probably a dumb question. I was just coding a UI with a CSLA biz obj. Simple edit form where I'm doing
BeginEdit
/AcceptEdit
/CancelEdit
.There is a scenario where the object might come into the screen already in a
obj.IsDirty == true
state.In that scenario the changes were not made on this form but:
Example:
I figured I would come here and wonder aloud whether it would be do-able to have a feature where you could test
.IsDirty
on an object as it relates to changes made after a.BeginEdit()
was called? Something like.IsDirtyForCurrentEditLevel
Anyone ever dealt with that?
Beta Was this translation helpful? Give feedback.
All reactions