|
|
Choosing A Webhost: |
Re: Multiple Qualifiers: msg#00004cms.opengroupware.xmlrpc.devel
> Hm, no. I explained how the backend works. The XML-RPC API uses > EOQualifier objects. Should look like: > server.person.fetch( > { "qualifier": "firstName = 'steve' AND name = 'berns'", > "sortOrderings": [ "name", ] }); > Maybe use 'like' instead of '='. Didn't try. Yep, that is like what I started with. If I - result = server.person.fetch( { "qualifier": "firstName = 'steve' AND name = 'berns'", "sortOrderings" : ["name",], }); - I get a : xmlrpclib.Fault: <Fault 0: 'UnsupportedQualifierException: SkyPersonDataSource: EOAnd/OrQualifers are only supported with the following operators: ( EOQualifierOperatorLike )'> If I - result = server.person.fetch( { "qualifier": "firstName LIKE 'steve' AND name LIKE 'berns'", "sortOrderings" : ["name",], }); - I get a : xmlrpclib.Fault: <Fault 0: "UnsupportedQualifierException: SkyPersonDataSource: EOKeyValueQualifers are only supported with the following operators: (EOQualifierOperatorLike, EOQualifierOperatorEqual): firstName like 'steve'"> Interesting that this doesn't return an error - result = server.person.fetch( { "qualifier": "firstName LIKE '*steve*' AND name LIKE '*berns*'", "sortOrderings" : ["name",], }); - but it also returns no data. Neither does this, which I know should match - result = server.person.fetch( { "qualifier": "firstName LIKE '*tev*' AND name LIKE '*ern*'", "sortOrderings" : ["name",], }); Do you think there might be a bug here? Bummer. It seems that, at least for companies (contacts & enterprises) I can search for just about any value using a fetchSpec, including extended attributes. So I put together a Gtk# form so I could do something like query-by-example... then next/prev around in the results. It works so long as I only put a value in one field. That and I'm still getting tweaked by bug#1598 (duplicate comment fields): http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1598 -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Multiple Qualifiers, Helge Hess |
|---|---|
| Next by Date: | Re: Multiple Qualifiers, Helge Hess |
| Previous by Thread: | Re: Multiple Qualifiers, Helge Hess |
| Next by Thread: | Re: Multiple Qualifiers, Helge Hess |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |