• 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
Relationships howto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Relationships howto


  • Subject: Relationships howto
  • From: Jim Wong <email@hidden>
  • Date: Thu, 2 Feb 2006 10:59:34 +0800

Hi:
help help!!

I have 2 tables. COMPANY and COUNTRY. in COMPANY, i have a country(integer type) attribute. in COUNTRY, i have ctryID(int type) and ctryName(string). Each ctryName will have a unique corresponding ctryID. 

in a web component, user will select from a WOPopup(which draws out all the ctryName from COUNTRY for display) a country of the company. Upon submit, I want the corresponding ctryID from COUNTRY to be in country of COMPANY. 

How do I create the relationships and make the bindings etc for the 2 tables and WOPopup? what codes do I have to enter manually like addObjectsToBothSidesOfRelationshipWithKey etc.?

thanks.

Warmest Regards,
Jim Wong
email@hidden



 _______________________________________________
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: Relationships howto
      • From: "Jerry W. Walker" <email@hidden>
  • Prev by Date: Re: Using a dynamic library with Java
  • Next by Date: Re: Relationships howto
  • Previous by thread: Re: D2WQuery Component Frustration
  • Next by thread: Re: Relationships howto
  • Index(es):
    • Date
    • Thread