Identifying changed fields
Identifying changed fields
- Subject: Identifying changed fields
- From: Rick Innis <email@hidden>
- Date: Mon, 15 Aug 2005 13:04:56 -0400
I have a request from a client to identify which fields have been
changed when a user updates information in a WebObjects application.
For the moment I've placated them by saying I can at least tell them
which records changed, but I'd like to do better if I can.
Looking at the WO APIs, it seems to me that subclassing
EOEditingContext might be the way to go; I could then override
objectWillChange to compare the current values in the object with
those returned by committedSnapshortForObject and keep track of the
values that have changed.
Providing an implementation of EOObserving to do this might be
another approach, but then I'd have the overhead of identifying every
object I wanted to track and ensuring it was properly registered with
the observer, which seems like a lot of extra overhead that
EOEditingContext already handles
Does this make sense, am I barking up the worng tree, or is there a
better way to do this?
--Rick.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden