• 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
Re: Updating EOObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating EOObjects


  • Subject: Re: Updating EOObjects
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 18 Aug 2005 14:25:00 -0700


On Aug 18, 2005, at 2:14 PM, Jonathan Miller wrote:

I have a two step form where the first step represents information in one table and the second step represents information in a second table. The two tables share a relationship where table one's Primary key is a foreign key in table 2.


Tables? Primary keys? What is that? We don't use those words in polite company here, those are dirty little implementation details best left in the dark corner of the closet. You have one instance (object) each of two entities (classes). Object A knows about (has a relationship to Object B. Does Object B know about Object A?


I am able to properly insert both sets of information into their respective tables.

That is EOF's job. Insert into tables? Who worries about low level details like that?



However when I go to view the information from inside a web page the information that should be displayed through the relationship does not appear.

Well, OK. Probably you have done something wrong. How are you creating the two objects? How are you establishing the relationship between them (telling A about B and / or B about A)? What does your code look like?



What is even more confusing is when I rebuild the project the information that didn't appear before appears now. I've tried reconstructing all my objects (i.e. the display group, the entity objects etc...) but that doesn't seem to help.

Sounds like you are relating the objects incorrectly. You are not actually, shudder, touching primary keys with your bare hands, are you?

Chuck

(only slightly in jest)


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________ 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: Updating EOObjects
      • From: LD <email@hidden>
    • Re: Updating EOObjects
      • From: Jonathan Miller <email@hidden>
References: 
 >Updating EOObjects (From: Jonathan Miller <email@hidden>)

  • Prev by Date: Updating EOObjects
  • Next by Date: EOQualifier timestamp comparison help
  • Previous by thread: Updating EOObjects
  • Next by thread: Re: Updating EOObjects
  • Index(es):
    • Date
    • Thread