How to hide a field of CContactDatabase
| Tue, 2006-10-17 12:26 | |
|
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 |
|






Forum posts: 981
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
Forum posts: 4
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
Forum posts: 981
And what exactly do you mean by it's not working? Can you give more details?
pirosl
Forum posts: 4
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
Forum posts: 981
As far as i know the default phone book will ignore hidden attribute for certain fields..
pirosl
Forum posts: 4
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
Forum posts: 1
Forum posts: 78
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
Forum posts: 981
There are multiple questions......Do you want to hide contact items or fields?
pirosl
Forum posts: 78
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
Forum posts: 981
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
Forum posts: 78
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 ?
Forum posts: 981
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