[OGo-Developer] accessing telephone numbers of team members in OGOGroupsPage
Sebastian Reitenbach
developer@opengroupware.org
Tue, 06 Mar 2007 10:58:44 +0100
Hi,
developer@opengroupware.org wrote:
> 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? :-)
/* fetch members */
members = [cmdctx runCommand:@"team::members",
@"teams", self->groupList,
@"returnType", intObj(LSDBReturnType_ManyObjects),
nil];
NSLog(@"The team members telephones: %@", telephones);
I get the following compiling errors:
Making all for wobundle GroupsUI...
Compiling file GroupsUIModule.m ...
Compiling file OGoGroupsPage.m ...
OGoGroupsPage.m: In function `-[OGoGroupsPage _fetchMyTeams]':
OGoGroupsPage.m:280: error: `telephones' undeclared (first use in this function)
OGoGroupsPage.m:280: error: (Each undeclared identifier is reported only once
OGoGroupsPage.m:280: error: for each function it appears in.)
gmake[1]: *** [shared_obj/OGoGroupsPage.o] Error 1
gmake: *** [GroupsUI.all.wobundle.variables] Error 2
will the telephones array be filled with values, when it exists, e.g. is
declared in the
class definition, before the command is run?
> Its set by
> /* get telephones */
> LSRunCommandV(_context, @"person", @"get-telephones",
> @"objects", m,
> @"relationKey", @"telephones", nil);
but I am still wondering, how do I get the values from that telephones array up
to the
OGoGroupsPage, to make them available there.
kind regards
Sebastian