BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-23-2005, 02:03 PM   #1 (permalink)
New Member
 
Join Date: Oct 2005
Model: 7280
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default adding Work 2 phone number to contact

Please Login to Remove!

Hi,

In my application I am adding a contact to the BlackBerry address book.

After perusing the documentation of BlackBerryContact interface, I can't seem to find a way to set the "Work 2" phone number field on a BlackBerry contact via the API.

From reading the docs (quoted below), it seems we only have access to the Work, Home, Mobile, Pager and Fax phone numbers. Does anyone have any idea how to get at Work 2, Home 2 and Other?

Thanks,

E

***********************************************
The TEL field supports at most 5 values, with each value having a distinct attribute. The PIMItem.getAttributes(int, int) method for the TEL field will always return one of ATTR_WORK, ATTR_HOME, ATTR_MOBILE, ATTR_PAGER, or ATTR_FAX.

When adding a TEL field, the attribute is chosen by examining the attributes parameter for the presence of one of the supported attributes in the following order: ATTR_FAX, ATTR_PAGER, ATTR_MOBILE, ATTR_HOME, ATTR_WORK, with the first one found that does not have a value already assigned to it being chosen. If no such attribute is found, or there are no vacant fields for values of the given attribute type, then the first available attribute is used in the order: ATTR_WORK, ATTR_HOME, ATTR_MOBILE, ATTR_PAGER, ATTR_FAX (even though the attribute is not present in the attributes parameter).
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.