• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Identifying changed fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Identifying changed fields
      • From: Karl <email@hidden>
  • Prev by Date: Re: NULLS and Formatters
  • Next by Date: Re: Identifying changed fields
  • Previous by thread: Re: Interfacing WebObjects with QuickBooks ?
  • Next by thread: Re: Identifying changed fields
  • Index(es):
    • Date
    • Thread