Discussion Board

Results 1 to 4 of 4

Thread: ID of a contact

  1. #1
    Registered User freaky_911's Avatar
    Join Date
    Mar 2008
    Posts
    28
    Hi!

    I would like to get the mobile number of a item
    in my content list through the ID.

    So I have the ID of the contact but how do I
    get its mobile number?

    Kind regards!

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Code:
    db=contacts.open()
    
    number=db[id].find('mobile_number') # id is the id of the contact
    
    print number[0].value
    Hope that's what you're looking for

  3. #3
    Registered User freaky_911's Avatar
    Join Date
    Mar 2008
    Posts
    28
    Quote Originally Posted by bogdan.galiceanu View Post
    Code:
    db=contacts.open()
    
    number=db[id].find('mobile_number') # id is the id of the contact
    
    print number[0].value
    Hope that's what you're looking for
    WOW!!! PERFEKT!

  4. #4
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,636
    Added to the Wiki database for Further Reference
    How to get number using contact id

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Random RingTone within Contact List for 3rd
    By cckfranky in forum Python
    Replies: 5
    Last Post: 2007-12-29, 18:33
  2. PIM API: updating contact causes a reboot on 6270!
    By suzier in forum Mobile Java General
    Replies: 8
    Last Post: 2007-04-03, 07:29
  3. Replies: 3
    Last Post: 2006-10-09, 12:24
  4. contact number and contact names doesn't match.
    By ninidotnet in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-10-09, 09:25

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