[Zope] need zcatalog help !

Geir B Hansen geirh@funcom.com
Mon, 15 Nov 1999 16:10:06 +0100


Help !
i have a problem with zcatalog-reports :
i use a GET-form to define which items form the zcatalog to display in
my intranet-phonelist. Problem is, the form appends all variables in the
form,even the ones without any value.
used on fieldindexes, this seems to be a grave problem, as Zcatalog
obviously intreprets a variable without any value as 'show all instances
that have a value of nothing for this variabe' instead of 'show all
intances'

the url :
http://my.machinecom/phonelist/index_html?meta_type=employee
gives me what i want, while :
http://my.machinecom/phonelist/index_html?meta_type=employee&team=
returns nothing.

is there anyway i can make Zcatalog know i want all instances if team=""
??

i was thinking of adding something in the line of this in the start of
the phonelist (report) -document :

<dtml-unless team>
<dtml-call "REQUEST.set('team',' something like
"Catalog.uniqueValuesFor('team')" although this wont work  ')">
</dtml-unless>

any ideas what i'm doing wrong ?

------------------------------------------------
Geir B Hansen
geirh@funcom.com
Web-designer / Graphic artist
Funcom Oslo
http://www.funcom.com
------------------------------------------------