×

Discussion Board

Results 1 to 12 of 12

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Question How to get the highlighted contact details

    Hello All,
    I want to know which item is currently highlighted in contacts lists.
    i.e i want to get details of the current highlighted contacts.
    I m able to read all contacts from the list.but i dont know hw can i get the informaion of current highlighted item.

    Can Anyone please help me in this?

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: How to get the highlighted contact details


  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Re: How to get the highlighted contact details

    Quote Originally Posted by JackSu View Post
    Thanks brother,

    But i think i have nt properly explained my requirement.
    Now will try to explain it properly.
    suppose i m on my phone contact list.
    now here i hv highlihted a item.

    now i want to get informatin abt that item.

    pls remember tht this contact list is nt mine its phone inbuild contact list.

    hope u understand it brother.

    Can anyone else have an answer?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: How to get the highlighted contact details

    According to an other thread, you might get the related API via API partnering (http://wiki.forum.nokia.com/index.ph...nering_Program) starting from S60 3rd FP2. For some reason it is not available for earlier releases.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Re: How to get the highlighted contact details

    Quote Originally Posted by wizard_hu_ View Post
    According to an other thread, you might get the related API via API partnering (http://wiki.forum.nokia.com/index.ph...nering_Program) starting from S60 3rd FP2. For some reason it is not available for earlier releases.
    thanks brother.

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Question Re: How to get the highlighted contact details

    DO any one else have some suggstion s for this?

    without using API parteneringg.

  7. #7
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    252

    Re: How to get the highlighted contact details

    hello dinesh and wizard....

    i am looking for the same thing also...

    i have used some apis like.

    Code:
    TContactItemId itemid =	iContactDb->GetCurrentItem();
    iContactDb is the default database.

    here i am getting the -1 itemid value....I am unable to understand from the sdk what exactly iContactDb->GetCurrentItem() does.

    and

    Code:
    TContactItemId ownCardId = iContactDb->OwnCardId();
        CContactItem* contact = NULL;
       contact = iContactDb->ReadContactL(ownCardId);
         int indexvalue = contact->CardFields().Find(KUidContactFieldGivenName);
    it freeze on line contact = iContactDb->ReadContactL(ownCardId);
    i am cofused according to the sdk it should work for getting the current contact item.


    please be helpfull for me ....
    what the above apis does ..is they are used for the same purpose or they do something else...???

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: How to get the highlighted contact details

    iContactDb is your own instance of the database/view. Thus it will report the item you (your code) have navigated to. The default is -1 (KNullContactId).

    EDIT:
    Which part of its description
    Quote Originally Posted by SDK Help
    Gets the ID of the current item, as set by SetCurrentItem(). The current item ID is initialised to KNullContactId when the database is opened
    is the one requiring further explanation?

Similar Threads

  1. Contact details of Nokia - Development
    By trine-entertainment in forum Audio
    Replies: 2
    Last Post: 2010-04-12, 16:17
  2. Viewing Contact Details and Identifying selected field
    By chintanshah_79 in forum Symbian
    Replies: 5
    Last Post: 2008-10-29, 13:25
  3. contact database change event details
    By rsajithali in forum Symbian
    Replies: 9
    Last Post: 2004-08-17, 00:55
  4. Contact details of Nokia - Development
    By trine-entertainment in forum General Development Questions
    Replies: 0
    Last Post: 2004-05-21, 10:54
  5. Contact details of Nokia - Development
    By trine-entertainment in forum Symbian
    Replies: 0
    Last Post: 2004-05-21, 10:52

Posting Permissions

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