Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor SymbianSandy's Avatar
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306
    Hi guys!!

    How can i add postal code to contact database?


    CPbkContactItem* contactItem = iPbkContactEngine-> CreateEmptyContactL();
    CleanupStack::PushL( contactItem );
    TPbkContactItemField* zipcode = contactItem->FindField( EPbkFieldIdPostalCode ); // it returns NULL
    zipcode->TextStorage()->SetTextL( aZipcode ); //zipcode
    TContactItemId contactId = iPbkContactEngine-> AddNewContactL(*contactItem);
    CleanupStack::PopAndDestroy( contactItem );


    Above code crashes with KERN-EXEC 3 error. It doesnt find postal-code related field and hence returns NULL. Why it is not able to fing PostalCode field. And is there any other way to add postal code?
    TIA

  2. #2
    Registered User dubey_hbti27's Avatar
    Join Date
    Oct 2006
    Posts
    20
    how did you solved your problem, now days i am also facing the same problem of adding fields other than default , manually and finding the same result..
    please help me ..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved