Re: Is there an easy way..
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