Absent Member.
Absent Member.
1722 views

Empty list by SelectedAddressBookEntries()

Hi,

I am trying to get a selected address book entry from the contact folder.
The following snippet shows the code fragment:

IDispatch *pIDisp;
IGWClientState *pIClientState;
IGWClientState6 *pIClientState6;
IGWAddressBookEntryList *pIAddressBookEntryList;

m_pIMgr->get_ClientState(&pIDisp);
if(pIDisp)
{[INDENT]pIDisp->QueryInterface(IID_IGWClientState6, (void**)&pIClientState6);
pIDisp->Release();
if(pIClientState6)
{[INDENT]pIClientState6->get_SelectedAddressBookEntries(&pIDisp);
pIClientState6->Release();
if(pIDisp)
{[INDENT]pIDisp->QueryInterface(IID_IGWAddressBookEntryList, (LPVOID*)&pIAddressBookEntryList);
pIDisp->Release();
if(pIAddressBookEntryList)
{[INDENT]
long count = 0;
pIAddressBookEntryList->get_Count(&count);
pIAddressBookEntryList->Release();
[/INDENT]
}
[/INDENT]
}
[/INDENT]
}
[/INDENT]
}

In GW client 7.x:
The code works as expected.

In GW client 8.x:
If the display property "View By" of the address book is set to "Address Cards", the list of contacts returned by get_SelectedAddressBookEntries() is always empty.
If the display property set to "Details", the list of contacts is filled correctly.

Since many of our customers take advantage of the view "Address Cards", we need a solution to this problem.

Thanks for your help...
Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.