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
Nitish_Pheonix
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL
Accepted Solution

Retrieve data from Address Book for Webworks Smartphone

Hi All,
I want  to implement the Address book API. For which I can get/retrieve the data(e.g. Phone Number,Email Address etc) to my project Application.
Is it possible to invoke the Address Book to retrieve data??

 

I go through this link but it didn't help me https://developer.blackberry.com/html5/apis/blackberry.invoke.addressbookarguments.html#view


I have search it many times but can't get such code to make it possible.
Please help me if anyone know the solution or having any sample code.

Thanks & Regards,
Himansu

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Please use plain text.
Developer
Nitish_Pheonix
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL

Re: Retrieve data from Address Book for Webworks Smartphone

Its seems quite surprise that no members of this forum suggested even a single code related to the above problem...

However I search some more and find the alternate solution.

var contactResult = new Array();

var Fname = new blackberry.find.FilterExpression("firstName", "!=", "");

	contactResult = blackberry.pim.Contact.find(Fname);
	for ( var i = 0; i < contactResult.length; i++) {
		var totalName = contactResult[i].title+ " "+ contactResult[i].firstName+ " "+ contactResult[i].lastName;
        }

 This will retrieve the all data or contacts from the Address book. For which I have to make a custom address book.

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Please use plain text.