Re: advanced search for extended company attributesnot working?

"Sebastian Reitenbach" <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.user
Organization L00 bugdead prods.
Message-ID <[email protected]>
[email protected] wrote: 
> > is it just me, or does the search for extended attributes not work as it 
> > should? I defined some extended attributes for companies, and some for 
> > persons. I have no problem to search and find contacts based on these 
> > extended attributes, but it doesn't seem to work for companies.
> > does someone can confirm that it is working for him?
> > I have a two or three month old -trunk version of ogo installed.
> 
> At least on the r2110 it works via zOGI -
> 
> #!/usr/bin/env python
> import xmlrpclib,pprint
> server = xmlrpclib.Server('http://.....')
> criteria1 = { }
> criteria1['conjunction'] = 'OR'
> criteria1['key'] = 'email2'
> criteria1['value'] = '%handling%'
> criteria1['expression'] = 'ILIKE'
> query = [ criteria1,  ]
> flags = { 'limit' : 150,
>           'revolve': 'NO' }
> result = server.zogi.searchForObjects('Enterprise', query, 0, flags)
> for enterprise in result:
>   print 'Enterprise#%d : %s' % (enterprise['objectId'], 
>                                 enterprise['name'])
> 
> If it was broke I'm pretty sure I'd hear about it from my users pretty
> quick! :)

hmm, ok, but via the webui? 
need to try later at home, on my testbox, whether this is not working there 
too, otherwise if it works, then I'd say, its only my installation here.

thanks
Sebastian

-- 
OpenGroupware.org Users
[email protected]
http://mail.opengroupware.org/mailman/listinfo/users
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.