Hi, i need to select a phone number from the phonebook. i currently have this code:
RPbkViewResourceFile pbkrf ( *iCoeEnv );
CPbkContactEngine* engine;
CPbkSingleItemFetchDlg::TParams params;
engine=CPbkContactEngine::NewL(&this->iCoeEnv->FsSession());
CPbkSingleItemFetchDlg* dlg=CPbkSingleItemFetchDlg::NewL(params, *engine);
pbkrf.OpenL();
dlg->ExecuteLD();
pbkrf.Close();
CPbkContactItem* contact=engine->OpenContactL(params.iContactItem->Id());
TPbkContactItemField* field=contact->FindField(params.iContactItemField->FieldInfo().FieldId());
TBuf<60> buf;
field->GetTextL(buf);
delete engine;
all works nicely, except that the contacts First name and last name appear as fields. is there a way to stop them from showing? or another way of doing this? thanks in advance

Reply With Quote

