6 Jan
2004
6 Jan
'04
4:11 p.m.
Steve Lenti wrote:
I have a Zcatalog setup to handle bunches of small xml files that are being stored as DTML Documents. When I do a query I would like to make the results unique on a fieldindex that is called ad_num. Is there a way to filter the results of a query to be unique on a fieldindex. I realize I can step through the results and filter out the duplicates but is there a more optimal way of doing this. I tried messing with something like this:
context.Catalog({ 'adTextidx' : adTextidx}).uniqueValuesFor('ad_num')
but this unfortunatly does not work.
Use something like: context.Catalog.uniqueValuesFor('ad_num') -mj