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

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


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.

> 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?

>>> another question, what are the differences between calling a
>>> command like this:
>>>   /* get telephones */
>>>   LSRunCommandV(_context, @"person", @"get-telephones",
>>>                 @"objects", m,
>>>                 @"relationKey", @"telephones", nil);
>>>
>>> and like this:
>>>   members = [cmdctx runCommand:@"team::members",
>>>                     @"teams",      self->groupList,
>>>                     @"returnType", intObj 
>>> (LSDBReturnType_ManyObjects),
>>>                     nil];
>>
>> No difference. One of those probably just calls the other.
> ok, yes the team:members some time later calls that get-telephones  
> command.

Ups, sorry. I thought you asked about the difference between  
LSRunCommandV function and the -runCommand: method.
Then in fact I don't understand what you real question is.

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