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!


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?



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).
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

Johnson Controls Metasys MS-IOM4710-0 & MS-IOB4710-0
Johnson Controls Metasys MS-IOM4710-0 & MS-IOB4710-0 pictureJohnson Controls Metasys MS-FEC1610-0 & MS-FEB1610-0
Johnson Controls Metasys MS-FEC1610-0 & MS-FEB1610-0 pictureUSED Johnson Controls MS-IOM1711-0 Metasys I/O Module Rev. J
USED Johnson Controls MS-IOM1711-0 Metasys I/O Module Rev. J pictureJohnson Controls Metasys MS-VMA1620-0 Variable Air Volume Control
Johnson Controls Metasys MS-VMA1620-0 Variable Air Volume Control pictureJOHNSON CONTROLS METASYS CONTROLLER

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