[OGo-Developer] accessing telephone numbers of team members in
OGOGroupsPage
Adam Tauno Williams
developer@opengroupware.org
Tue, 06 Mar 2007 06:41:48 -0500
> 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];
The first adds the telephone information to each of the objects in "m",
assuming "m" is an array of records (EOGenericRecord). The second
initializes "members" to the array of records returned by the search.
For retrieving phone numbers I've also used:
NSArray *phones;
phones = [cmdctx runCommand:@"telephone::get",
@"companyId", _companyId,
@"returnType", intObj(LSDBReturnType_ManyObjects),
nil];
*Where _companyId is an NSNumber.