cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bhavesh b (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-2437) Contacts API: When user tries to search contact with space, it does not shows the result.
Date Thu, 14 Feb 2013 11:50:13 GMT

     [ https://issues.apache.org/jira/browse/CB-2437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

bhavesh b updated CB-2437:
--------------------------

    Description: 
I am trying to use the contacts.find api to search the contact. but it does not return the
contact if the filter option is given with space(e.g. abc xyz).  

If user search for "abc xyz" then it does not shows the result, but when user search for "abc"
then it shows contact "abc xyz"

Here is a code snippet of what I am trying to do:

options = new ContactFindOptions();
options.filter = request.term;
options.multiple = true; 
fields = ["displayName", "emails"];
navigator.service.contacts.find(fields,
function (contacts) {
var responseList = [];
}


  was:
I am trying to use the contacts.find api to search the contact. but it does not return the
contact if the filter option is given with space(e.g. abc xyz).  

If user search for "abc xyz" then it does not shows the result, but when user search for "abc"
then it shows contact "abc xyz"

Here is a code snippet of what I am trying to do:

options = new ContactFindOptions();
options.filter = request.term;
options.multiple = true; 
fields = ["displayName", "phoneNumbers", "emails"];
navigator.service.contacts.find(fields,
function (contacts) {
var responseList = [];
}


    
> Contacts API: When user tries to search contact with space, it does not shows the result.
> -----------------------------------------------------------------------------------------
>
>                 Key: CB-2437
>                 URL: https://issues.apache.org/jira/browse/CB-2437
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.3.0
>            Reporter: bhavesh b
>            Assignee: Shazron Abdullah
>
> I am trying to use the contacts.find api to search the contact. but it does not return
the contact if the filter option is given with space(e.g. abc xyz).  
> If user search for "abc xyz" then it does not shows the result, but when user search
for "abc" then it shows contact "abc xyz"
> Here is a code snippet of what I am trying to do:
> options = new ContactFindOptions();
> options.filter = request.term;
> options.multiple = true; 
> fields = ["displayName", "emails"];
> navigator.service.contacts.find(fields,
> function (contacts) {
> var responseList = [];
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message