×

Discussion Board

Results 1 to 4 of 4

Thread: ID of a contact

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    ID of a contact

    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
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: ID of a contact

    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
    Join Date
    Mar 2008
    Posts
    28

    Re: ID of a contact

    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
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,800

    Re: ID of a contact

    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 Symbian
    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
  •  
×