cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
76
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Stig Karlsen on 19-11-2009 08:50:13 PM
Hi,

I want to store contacts in my local phonebook via the API but i am experiencing some issues.

It is not possible to store any blanks/space in the name field. ie: "Jon Doe" becomes only "Jon".
I have made a workaround and replaced  "\x20"  with "_", but then it's not possible to search for "Doe", only John

Will there be a fix for this soon ?



Regards,


Stig

Subject: RE: Local Phonebook issues
Replied by: David Bruun-Lie on 20-11-2009 10:59:26 AM
Hi Stig,

Works for me - just remember to enclose the name with '"' e.g.:

1xCommand Phonebook Contact Add Name: "peter pan" Number:123


Regards,
David

Subject: RE: Local Phonebook issues
Replied by: Stig Karlsen on 20-11-2009 08:29:47 PM
Hi David,

Ok
the example in the API shows: xCommand Phonebook Contact Add Name:John Number:12345

No enclosed Name.

But Thanks  :-)

Regards,

Stig

Subject: RE: Local Phonebook issues
Replied by: David Bruun-Lie on 24-11-2009 01:56:48 PM
Ok, I have changed the example to include a name that has a space, thanks! :-)

In general for the API: For configurations and commands that take strings as inputs they need to be "quoted" if  the strings contain spaces.

Therefore these works:
1xCommand Phonebook Contact Add Name:John Number:12345
2xCommand Phonebook Contact Add Name:"John Doe" Number:12345

And this does NOT work:
1xCommand Phonebook Contact Add Name:John doe Number:12345


David
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links