Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 232
Registered: ‎01-30-2011
My Device: Dev Alpha C, Z10 LE
My Carrier: P4

Linking Contacts?

Is it possible to link (in other words merge without overwriting) contact to other?

 

I didn't find anything in API Reference [here etc]...

All time online Smiley Very Happy
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Linking Contacts?

the Contact API has a save() method that "Saves a new contact to the device contacts database, or updates an existing contact if a contact with the same id already exists"

 

So there is no auto-merge. It would be up to the developer to modify only appropriate values.

 

Suggested solution:

1) Get the contact

2) Change property XYZ, ABC

3) Save the contact

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.