StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
has field value changed... ?
has field value changed... ?
Post Reply
Like
0
has field value changed... ?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Philipp Guntermann
Philipp Guntermann
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 141,
Visits: 263
hi, i am overriding the onbeforesave event on a bo and i need to check that if in editing-mode, wether a value of a specific field was changed by the user or not. like:
protected override void OnBeforeSave(MicroFour.StrataFrame.Data.BeforeSaveUndoEventArgs e)
{
if (this.EditingState == BusinessEditingState.Adding)
{
if (this.custno.hasChanged)
{
// do something
}
else
{
// do something else
}
}
base.OnBeforeSave(e);
}
any ideas ? thanks.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
has field value changed... ?
Philipp Guntermann
-
15 Years Ago
should read BusinessEditingState.Editing instead of...
Philipp Guntermann
-
15 Years Ago
Well, you could do several things. I would not use the editing state...
Trent L. Taylor
-
15 Years Ago
hi, ok, i can use isdirty instead of editingstate.editing, but that...
Philipp Guntermann
-
15 Years Ago
Actually it will. Look at this:...
Trent L. Taylor
-
15 Years Ago
thanks, will have a closer look :)
Philipp Guntermann
-
15 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search