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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists% 40anderhome.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to