Highlighted
Anonymous_User Absent Member.
Absent Member.
1821 views

Finding a group

Can anyone suggest an elegant way of finding a group or contact given the
information that's available from the Name Completion ActiveX Control, i.e.
Display name, email address, email type and Address Type (user, group, etc)?

Looking at the Object API docs, it seems the system address book doesn't
support searching by 'Name', only 'First name' and 'Last name' - how would
this work for groups? I'm thinking I'll just have to loop over everything
in all the address books until I find something of the right type, and then
check its names, but there must be a better way!

Many thanks for any help.
Labels (1)
0 Likes
4 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Finding a group

The Object API should provide more - see
http://developer.novell.com/documentation/gwobjapi/gwobjenu/data/ajy59v3.html
for some examples.

Years ago I wrote a Delphi sample for address book filtering (d3gwaflt)

Wolfgang


"Leo Shaw" <novell-gwc3po@leoshaw.co.uk> wrote in message
news:a0d%i.404$L42.5@kovat.provo.novell.com...
> Can anyone suggest an elegant way of finding a group or contact given the
> information that's available from the Name Completion ActiveX Control,
> i.e. Display name, email address, email type and Address Type (user,
> group, etc)?
>
> Looking at the Object API docs, it seems the system address book doesn't
> support searching by 'Name', only 'First name' and 'Last name' - how would
> this work for groups? I'm thinking I'll just have to loop over everything
> in all the address books until I find something of the right type, and
> then check its names, but there must be a better way!
>
> Many thanks for any help.



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Finding a group

Great, thanks I'll try searching with 'Name' and see what happens.
Probably not your area, but do you know if there's any way of getting an
AddressBookEntry (or even Address) object out of the Name Completion
Control? It seems a shame that it goes to the trouble of searching for
addresses as the user enters them, and disambiguating, but you effectively
have to do it all again if you need to get AddressBookEntrys corresponding
to its members.

Thanks again,

Leo

Wolfgang Schreiber wrote:
> The Object API should provide more - see
> http://developer.novell.com/documentation/gwobjapi/gwobjenu/data/ajy59v3.html
> for some examples.
>
> Years ago I wrote a Delphi sample for address book filtering (d3gwaflt)
>
> Wolfgang
>
>
> "Leo Shaw" <novell-gwc3po@leoshaw.co.uk> wrote in message
> news:a0d%i.404$L42.5@kovat.provo.novell.com...
>> Can anyone suggest an elegant way of finding a group or contact given the
>> information that's available from the Name Completion ActiveX Control,
>> i.e. Display name, email address, email type and Address Type (user,
>> group, etc)?
>>
>> Looking at the Object API docs, it seems the system address book doesn't
>> support searching by 'Name', only 'First name' and 'Last name' - how would
>> this work for groups? I'm thinking I'll just have to loop over everything
>> in all the address books until I find something of the right type, and
>> then check its names, but there must be a better way!
>>
>> Many thanks for any help.

>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Finding a group

Looking at the API again, the Find method returns an Addresses collection,
so how could I get the members of groups returned by Find?

Leo Shaw wrote:
> Great, thanks I'll try searching with 'Name' and see what happens.
> Probably not your area, but do you know if there's any way of getting an
> AddressBookEntry (or even Address) object out of the Name Completion
> Control? It seems a shame that it goes to the trouble of searching for
> addresses as the user enters them, and disambiguating, but you
> effectively have to do it all again if you need to get AddressBookEntrys
> corresponding to its members.
>
> Thanks again,
>
> Leo
>
> Wolfgang Schreiber wrote:
>> The Object API should provide more - see
>> http://developer.novell.com/documentation/gwobjapi/gwobjenu/data/ajy59v3.html
>> for some examples.
>>
>> Years ago I wrote a Delphi sample for address book filtering (d3gwaflt)
>>
>> Wolfgang
>>
>>
>> "Leo Shaw" <novell-gwc3po@leoshaw.co.uk> wrote in message
>> news:a0d%i.404$L42.5@kovat.provo.novell.com...
>>> Can anyone suggest an elegant way of finding a group or contact given
>>> the information that's available from the Name Completion ActiveX
>>> Control, i.e. Display name, email address, email type and Address
>>> Type (user, group, etc)?
>>>
>>> Looking at the Object API docs, it seems the system address book
>>> doesn't support searching by 'Name', only 'First name' and 'Last
>>> name' - how would this work for groups? I'm thinking I'll just have
>>> to loop over everything in all the address books until I find
>>> something of the right type, and then check its names, but there must
>>> be a better way!
>>>
>>> Many thanks for any help.

>>
>>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Finding a group

Check the AddressBookEntries.Item() method

http://developer.novell.com/documentation/gwobjapi/gwobjenu/data/h3r0rhi6.html


"Leo Shaw" <novell-gwc3po@leoshaw.co.uk> wrote in message
news:tDi%i.529$L42.187@kovat.provo.novell.com...
> Looking at the API again, the Find method returns an Addresses collection,
> so how could I get the members of groups returned by Find?
>
> Leo Shaw wrote:
>> Great, thanks I'll try searching with 'Name' and see what happens.
>> Probably not your area, but do you know if there's any way of getting an
>> AddressBookEntry (or even Address) object out of the Name Completion
>> Control? It seems a shame that it goes to the trouble of searching for
>> addresses as the user enters them, and disambiguating, but you
>> effectively have to do it all again if you need to get AddressBookEntrys
>> corresponding to its members.
>>
>> Thanks again,
>>
>> Leo
>>
>> Wolfgang Schreiber wrote:
>>> The Object API should provide more - see
>>> http://developer.novell.com/documentation/gwobjapi/gwobjenu/data/ajy59v3.html
>>> for some examples.
>>>
>>> Years ago I wrote a Delphi sample for address book filtering (d3gwaflt)
>>>
>>> Wolfgang
>>>
>>>
>>> "Leo Shaw" <novell-gwc3po@leoshaw.co.uk> wrote in message
>>> news:a0d%i.404$L42.5@kovat.provo.novell.com...
>>>> Can anyone suggest an elegant way of finding a group or contact given
>>>> the information that's available from the Name Completion ActiveX
>>>> Control, i.e. Display name, email address, email type and Address Type
>>>> (user, group, etc)?
>>>>
>>>> Looking at the Object API docs, it seems the system address book
>>>> doesn't support searching by 'Name', only 'First name' and 'Last
>>>> name' - how would this work for groups? I'm thinking I'll just have to
>>>> loop over everything in all the address books until I find something of
>>>> the right type, and then check its names, but there must be a better
>>>> way!
>>>>
>>>> Many thanks for any help.
>>>
>>>



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.