[OGo-Developer] accessing telephone numbers of team members in OGOGroupsPage

Helge Hess developer@opengroupware.org
Tue, 6 Mar 2007 10:45:02 +0100


On Mar 6, 2007, at 10:34, Sebastian Reitenbach wrote:
> developer@opengroupware.org wrote:
>> On Mar 6, 2007, at 10:02, Sebastian Reitenbach wrote:
>>> ah, ok, so there is a members.telephones.01_tel key then?
>>
>> ? members is and array and telephones is an array. You probably need
>> a WORepetition to walk over them.
> so telephones is an independent array from the members array then,  
> but where is
> it defined?

I can't follow you. Its a key of any given person object, what else  
could it be? :-)

>>> or do you mean I have to add an NSArray *telephones to the
>>> OGoGroupsPage so that the telephone numbers will be saved in there,
>>> while now as there is no such an array, they just disappear?.
>> Hm, no?
> But in OGoGroupsPage.m I do not have a telephones array, is this  
> created from
> running the command? I am wondering where the telephones NSArray is  
> created, while running
> the command?
> I do not understand where it comes from.

Its set by
   /* get telephones */
   LSRunCommandV(_context, @"person", @"get-telephones",
                 @"objects", m,
                 @"relationKey", @"telephones", nil);

Helge
-- 
Helge Hess
http://www.helgehess.eu/