• 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
Updating primary key value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating primary key value


  • Subject: Updating primary key value
  • From: Benjamin Adair <email@hidden>
  • Date: Mon, 27 Sep 2004 10:12:29 -0500

Morning all.

I, understandably, am getting errors attempting to update the primary key of an EO. This is a situation where the PK is a meaningful attribute, yet must be user modifiable. (I am fitting a WO app to an existing system that drives our web site. Changing it to work with WO is not possible -nor should it be required in my idealist's world. Ah, the life of the idealist..)

What have others done to work around this? Turning off the PK attribute in the EOModel gives errors were EOAccess expects the entity to have a PK. The only solution that comes to mind is to watch for when the user has modified the PK and manually insert what is essentially a brand new row and delete the old. Is there a simpler solution? If it's there in the API, I'd appreciate a quick pointer where to look, though I didn't see anything obvious from what I've seen so far.

Thanks!
Ben

--

Benjamin Adair

Central Office Database Programmer/Analyst
Cancer & Leukemia Group B
Phone: 773-702-6731
Fax: 312-345-0117
Email: email@hidden
Web: http://www.calgb.org/
 _______________________________________________
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:
    • Editing context not reflecting edits?
      • From: Benjamin Adair <email@hidden>
    • Re: Updating primary key value
      • From: Ray Ackland <email@hidden>
  • Prev by Date: RE: Searching a full name
  • Next by Date: WOFileUpload - filePath problem
  • Previous by thread: [OT] Downloading .exe files and https
  • Next by thread: Re: Updating primary key value
  • Index(es):
    • Date
    • Thread