Fw: Re / Is there an easy way..

"WILLIAM GARNETT" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <45939C8D.00000F.05516@BILL>
  
From: WILLIAM GARNETT
Date: 12/28/06 10:25:43
To: [email protected]
Cc: [email protected]
Subject: Re / Is there an easy way..
 
  Gino;
 
The way to do it is to have 2 repetitions, one within the other:
 
Repetition 1 - (List: Countries; item: currCountry)
        currCountry.name
        Repetition 2 - (List: currCountry.cities; item = city)
                city.name
        End-Repetition 2
End-Repetition 1
 
Hope this helps.
 
Cheers,
Bill
 
----------------------------------------------------------------------
 
Message: 1
Date: Wed, 27 Dec 2006 16:06:15 +0000
From: Gino Pacitti <[email protected]>
Subject: Is there an easy way..
To: Development WebObjects <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
 
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
 
Cheers,
Bill.

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.