• 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: Is there an easy way..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there an easy way..


  • Subject: Re: Is there an easy way..
  • From: Ken Anderson <email@hidden>
  • Date: Wed, 27 Dec 2006 11:10:47 -0500

Gino,

You should use 2 WORepititions - one that iterates over the countries, and one that iterates over the towns relationship of country.

If you fetch all the countries into a countries array, you would use that as the list of the WORepetition. Then, you could create a variable called country, and bind that to the item of the first repetition.

Inside that WORepitition, you would have another repetition, where list is bound to country.towns, and item could be a new variable called town.

Ken

On Dec 27, 2006, at 11:06 AM, Gino Pacitti wrote:

Hi All

Could anyone help with a small problem.

I have database setup with Countries and towns

Country -- >> Town

And I need to iterate through Each Country and make a heading, then list the towns for that country on a page.

It should appear like this:

Germany
Berlin
Nuremburg
Stuttgard

England
London
Manchester

France
Paris

etc...


Are there any premade WO Components that exist with bindings that can easy achieve this?


Gino


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


This email sent to 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
References: 
 >Is there an easy way.. (From: Gino Pacitti <email@hidden>)

  • Prev by Date: Is there an easy way..
  • Next by Date: Re: Wonder project
  • Previous by thread: Is there an easy way..
  • Next by thread: [Meeting] Toronto Area Cocoa and WebObjects Developer Group - January 9, 2007
  • Index(es):
    • Date
    • Thread