BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-25-2010, 10:09 AM   #1
anw
Knows Where the Search Button Is
 
Join Date: May 2010
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 15
Default Blackberry Contact Attributes: What's supported where, and how are they mapped?

Please Login to Remove!

I'm writing an app that allows a user to enter a new contact, and, of course, would like to make the entry screen as much as possible like RIM's to give a seamless experience (I can't find any way of just opening the Blackberry "Add Contact" screen itself, and having it return me what the user entered, which would be my preferred way of doing this). In doing so, I have run into this question.

Is there some definitive documentation as to what attributes are supported for which fields, and how the Blackberry address book maps them?

Here is the main (well, OK, so far, only) specific anomaly. The Blackberry API documentation says this regarding Contact.TEL:
Quote:
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, ATTR_OTHER 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_OTHER, ATTR_WORK, ATTR_HOME, ATTR_MOBILE, ATTR_PAGER, ATTR_FAX (even though the attribute is not present in the attributes parameter).

The TEL field supports at most 8 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, ATTR_FAX, or ATTR_OTHER.
But the Blackberry contact data entry screen has these telephone fields:
Quote:
Work
Work 2
Home
Home 2
Mobile
Mobile 2
Pager
FAX
Other
As is obvious here, there is no Contact.TEL-ATTR_WORK2, Contact.TEL-ATTR_HOME2, etc. How are these phone numbers being stored? BTW, note also that this is nine phone fields, one more than the documentation says you can have (assuming "Other" is a telephone field; I haven't tried to store anything in it, but, if you enter data into it, it certainly enforces a phone number formatted string).

Experimenting with the software seems to validate the documentation, but that's not what the Blackberry contact entry screen seems to do.

Anyone out there run into this? Any pointers to more definitive documentation?

TIA,
Allen
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Iwill DNS-SATA E7520 Intel Chipset eATX Xeon Socket 604 Server Board picture

Iwill DNS-SATA E7520 Intel Chipset eATX Xeon Socket 604 Server Board

$195.00



Kit xeon Maxgeek DSE6020 MKII Generator Controller Generator Set Control Panel picture

Kit xeon Maxgeek DSE6020 MKII Generator Controller Generator Set Control Panel

$132.00



INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832 picture

INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832

$12.00



INTEL C1P87A XEON PHI PROCESSOR 5110P picture

INTEL C1P87A XEON PHI PROCESSOR 5110P

$29.99



Mitel UC Server 30 Small Business Ed, ST008, X11SSL/M-F, 8GB, Xeon E3-1225V5 1TB picture

Mitel UC Server 30 Small Business Ed, ST008, X11SSL/M-F, 8GB, Xeon E3-1225V5 1TB

$229.99



NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM picture

NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM

$144.49







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