[Helma-user] getOrderedView
Chris Zumbrunn
chris at mocha.ch
Sat Sep 23 11:42:24 CEST 2006
On Sep 21, 2006, at 12:46 , VividVisions, Walter Krivanek wrote:
> shouldn't getOrderedView return a HobObject (collection)?
> If I print out a collection retrieved via getOrderedView I get:
> [NodeHandle[HobObject[6]], NodeHandle[HobObject[3]], NodeHandle
> [HobObject[5]], NodeHandle[HobObject[4]]]
>
> Because of this, I have troubles using getOrderedView within a
> Javascript Template.
> <% foreach (obj in collection.getOrderedView("name")) %> does not
> work.
>
> Any ideas?
>
I think you would need:
<% foreach (obj in collection.getOrderedView("name").list()) %>
Oops... Warning: business logic does not belong in skin
foo = collection.getOrderedView("name").list();
<% foreach (obj in foo) %>
:-)
Chris
More information about the Helma-user
mailing list