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

OEM Dell Dimension E310 E3100 Motherboard Intel P4 2.8GHz 1G Ram
$21.78
OEM Dell Dimension E310 E3100 Motherboard Intel P4 2.8GHz 1G Ram pictureDell CW796 Cover Top 1720 OEM Genuine NIB OEM
$39.95
Dell CW796 Cover Top 1720 OEM Genuine NIB OEM  pictureDELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL
$195.86
DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL pictureOEM Dell 0PH344 375W PSU N375P-00 NPS-375AB A Power Supply for Precision 380 390
$22.98
OEM Dell 0PH344 375W PSU N375P-00 NPS-375AB A Power Supply for Precision 380 390 pictureNew Dell Genuine OEM Cyan Toner Cartridge H625 H825 S2825 P3HJK
$75.98
New Dell Genuine OEM Cyan Toner Cartridge H625 H825 S2825 P3HJK  picture






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