×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    26

    contact fields and company name

    Hi,

    I'm tyring to set a contact items field "KUidContactFieldCompanyName". However, I can't get field to display when contact item is opened.

    When setting contact givenname or familyname fields everything works ok:

    field2 = CContactItemField::NewLC (KStorageTypeText , KUidContactFieldFamilyName);
    field2->SetMapping(KUidContactFieldVCardMapUnusedN)
    field2->TextStorage()->SetTextL(_L("smith"));

    but when using companyname:
    field2 = CContactItemField::NewLC (KStorageTypeText , KUidContactFieldCompanyName);
    field2->SetMapping(KUidContactFieldVCardMapUnusedN)
    field2->TextStorage()->SetTextL(_L("company"));

    field company name dosn't show.

    Does somebody now how to set contact KUidContactFieldCompanyName or where to get information? (rfc 2426 dosn't really help here)...

    t. Matti

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    26
    Correct way to set company name is (after some debuggin):

    field2 = CContactItemField::NewLC (KStorageTypeText , KUidContactFieldCompanyName);
    field2->SetMapping(KUidContactFieldVCardMapORG)
    field2->TextStorage()->SetTextL(_L("company"));

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×