Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there an easy way..



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:
http://lists.apple.com/mailman/options/webobjects-dev/lists% 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: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Is there an easy way.. (From: Gino Pacitti <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.