[Zope] single iterations over duplicate values
Kevin Carlson
khcarlso at bellsouth.net
Sat Jan 3 15:34:16 EST 2004
Take a look at <dtml-var first-xxx>. For example, if you the duplicate
value you want to check for is named "test", you can check to see if the
current iteration is the first iteration by using something like:
<dtml-if first-test>.
I think you need to sort the result set by the column you want to check.
Kevin
garry saddington wrote:
>I have a dtml method that accepts input from a zsql method and dtml-in is used
>to loop over the result set. However, there are duplicate values in the query
>result set(by design) but i want to list only one iteration of each value in
>my dtml method. Does anyone know how to do this, ie skip over duplicate
>results?
>regards
>garry
>
>
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
More information about the Zope
mailing list