• 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: Master Detail relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Master Detail relationship


  • Subject: Re: Master Detail relationship
  • From: Owen McKerrow <email@hidden>
  • Date: Mon, 19 Apr 2004 12:23:40 +1000

Hi Greg,

Add a one-to-many relationship between country and the state's it owns ( if there isn't one already). You will then need to add an onChange javascript call on your Country pop-up (Im assuming you are using a op-up of course). onChange will submit the form, thus calling teh action bound to the form. This action needs to set the list bound to the State's pop-up to the states array of the country

eg
listOfStatesForPopUp = selectedCountry.states();

Give me a yell if you need anymore help.

Owen McKerrow


On 19/04/2004, at 12:07 PM, Greg Hulands wrote:

Hi,
I have a component that allows users to sign up to the system. In the attributes that are captured is country and state. I have two tables in the database (country and state) to hold all the countries and states that the system will be available in. I am trying to display the states of the currently selected country but am at a loss on how to do this. I have looked on wodev.com but could not see anything. I have looked over the examples but nothing stood out there.


Can someone point me in the direction on how to do this please.


Thanks in advance,
Greg
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"I like the way this project has somehow, against all common sense, got itself made."
- Peter Jackson, "The Lord of The Rings"
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.



References: 
 >Master Detail relationship (From: Greg Hulands <email@hidden>)

  • Prev by Date: Re: Master Detail relationship
  • Next by Date: XHTML/WO help for XCode
  • Previous by thread: Re: Master Detail relationship
  • Next by thread: XHTML/WO help for XCode
  • Index(es):
    • Date
    • Thread