
05-Oct-2009, 08:39 AM
|
|
Junior Member
|
|
Join Date: Apr 2008
Posts: 4
|
|
Re: I can't get all fields of contacts (phones)
Thanks, it works!
Originally Posted by Preston Stephenson
|
Did you login into a 8.0.0 POA and pass
"1.02" in the <version> element of loginRequest?
>>> On Friday, October 02, 2009 at 6:26 AM,
VaronZ<VaronZ@no-mx.forums.novell.com>
wrote:
> Hello Everyone,
>
> Contacts in address books contains next fields Home 2 Phone, Callback
> Phone, Car Phone etc. I try to read contacts information from address
> books but I these fields. I has got only fields as in older versions of
> GroupWise (home/mobile/office).
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑†‘‑‑‑
>
>
> var cRequestRead = new getItemsRequest { container = bookId };
> var gwFE = new FilterEntry { field = "@type", value = "Contact", op =
> FilterOp.eq };
> var gwFilter = new Filter { element = gwFE };
> cRequestRead.filter = gwFilter;
> try
> {
> var cResponseRead = _gwBinding.getItemsRequest(cRequestRead);
> if ((cResponseRead.status.code == 0) && (cResponseRead.items != null))
> foreach (var item in cResponseRead.items)
> {
> var contact = (Contact) item;
> lbInfo.Items.Add(contact.fullName.displayName);
> var pl = contact.phoneList;
> if(pl != null && pl.phone != null)
> foreach (var phone in pl.phone) //pl.phone contains only
> mobile/home/office !!!
> {
> lbInfo.Items.Add(phone.type + " ‑ " + phone.Value);
> }
> lbInfo.Items.Add("");
> }
> }
> catch (Exception ex)
> {
> lbInfo.Items.Add("Error reading from GroupWise.");
> }
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑†‘‑‑‑
>
>
> How can I get these fields?
|
|