How to hide a field of CContactDatabase

Login to reply to this topic.
Tue, 2006-10-17 12:26
Joined: 2006-10-06
Forum posts: 4
Hi,

I am working on some phone book application.
I am just trying to hide a field added by my application into CContactDatabase by using SetHidden(ETrue) function from class CContactItemField.
But it is not working.
i need to know how i can hide a particular field which is added by my application.

Thanks
Shobhit

Tue, 2006-10-17 12:42
Joined: 2004-05-24
Forum posts: 981
Re: How to hide a field of CContactDatabase
Hide for who? For the default phone book application?For your application?
What exactly do you mean by "it'n norking"? When you retrieve back the contact item the field does not have the hidden property set to true? Or?

pirosl

Wed, 2006-10-18 05:46
Joined: 2006-10-06
Forum posts: 4
Re: How to hide a field of CContactDatabase
Hi,
i have added one contact item from my application to default phone book application with some fields. i want to hide one of the field.

i want to know is is it possible HuhHuh and how?HuhHuh
Wed, 2006-10-18 10:37
Joined: 2004-05-24
Forum posts: 981
Re: How to hide a field of CContactDatabase
And i'm asking you again.....those fields will be hidden in default phone book? Or in your phone book application?
And what exactly do you mean by it's not working? Can you give more details?

pirosl

Wed, 2006-10-18 11:27
Joined: 2006-10-06
Forum posts: 4
Re: How to hide a field of CContactDatabase
Hi Pirosl

The contact item is added in to the native phone book application from my application.
i want to hide field of this item from my application.
So when i launch native symbian phone book application this contact item field should  be in hidden mode.

i used SetHidden(ETrue) function of class CContactItemField but it is not working
Wed, 2006-10-18 21:27
Joined: 2004-05-24
Forum posts: 981
Re: How to hide a field of CContactDatabase
On what platform are you working on? And for what field are you setting the hidden attribute?
As far as i know the default phone book will ignore hidden attribute for certain fields..

pirosl

Thu, 2006-10-19 06:17
Joined: 2006-10-06
Forum posts: 4
Re: How to hide a field of CContactDatabase
Hi Pirosl,

i am working on symbian seris 60 second edition FP2 platform.

i just added one field like telephone to the native symbian phone book app from my own app with setting it into hidden mode. But default Phone book app is not hiding this field.

as you told default phone book igonres hidden attribute for some of the field could you please tell me which fields it does not ignore.

thanks a lot
Mon, 2007-04-09 16:03
Joined: 2007-04-09
Forum posts: 1
Re: How to hide a field of CContactDatabase
I have same problem. I want hide contact item with phone book default and read in my contacts. Pls help me. Thanx
Thu, 2008-04-10 15:30
Joined: 2004-12-09
Forum posts: 78
Re: How to hide a field of CContactDatabase

Hi
I would like to hide one of the fields of the Contact item from the Phone book application. Is it possible ? As I guess the Set Hidden ()attribute of the CContactItemField makes it hidden only from CContactFilteredView where we explicitly mention that we dont want hidden entries.
Regards
G

Fri, 2008-04-11 11:12
Joined: 2004-05-24
Forum posts: 981
Re: How to hide a field of CContactDatabase

There are multiple questions......Do you want to hide contact items or fields?


pirosl

Fri, 2008-04-11 12:07
Joined: 2004-12-09
Forum posts: 78
Re: How to hide a field of CContactDatabase

Ok heres is the problem scenario . I add a new contact with 4 fields say Name , second name , Mobile Home and Mobile Office. I do this by using APIs CContactItemField and CContactItem . I want this contact to show only the Mobile Home and not the Mobile Office when the Phonebook application of the phone is opened to see the contacts. So in short can we hide some fields of a contact item ?
Regards
G

Fri, 2008-04-11 13:09
Joined: 2004-05-24
Forum posts: 981
Re: How to hide a field of CContactDatabase

You'll have to use SetHidden.....but..in the case of Phonebook application the that field will be still shown (if it's a standard field).


pirosl

Fri, 2008-04-11 14:13
Joined: 2004-12-09
Forum posts: 78
Re: How to hide a field of CContactDatabase

Thanks for the reply.So theres is no way to hide the contact item field from the Phone book application it seems as its going to read all the Contact database entries hidden or not ?

Fri, 2008-04-11 14:19
Joined: 2004-05-24
Forum posts: 981
Re: How to hide a field of CContactDatabase

As far as I know you can't hide fields from templates from Phonebook application (as Phonebook application will just ignore that flag).
Though you can hide custom fields.....

But really this has to be tested between UI platforms (UIQ/S60 2nd and 3rd edition)....


pirosl

  • Login to reply to this topic.