[OGo-Developer] accessing telephone numbers of team members in OGOGroupsPage
Helge Hess
developer@opengroupware.org
Tue, 6 Mar 2007 09:45:03 +0100
On Mar 6, 2007, at 09:09, Sebastian Reitenbach wrote:
> in OGoGroupsPage.m it fetches the members like this:
> /* fetch members */
> members = [cmdctx runCommand:@"team::members",
> @"teams", self->groupList,
> @"returnType", intObj(LSDBReturnType_ManyObjects),
> nil];
...
> /* get telephones */
> LSRunCommandV(_context, @"person", @"get-telephones",
> @"objects", m,
> @"relationKey", @"telephones", nil);
Well, then the telephones should be available in the 'telephones'
array of the object.
> I see, because of the NSLog statements, the telephone information
> is fetchted
> from the database, but If it is not used, I wonder why it is done
> in the first place.
Because its just a generic fetch method which fetches some superflous
information.
> 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.
Greets,
Helge
--
Helge Hess
http://www.helgehess.eu/