[OGo-Developer] accessing telephone numbers of team members in
OGOGroupsPage
Adam Tauno Williams
developer@opengroupware.org
Thu, 08 Mar 2007 07:26:20 -0500
> looks similar in my eyes, so for me, no difference. Therefore I wonder why this:
> <var:string value="account.email1" /><html:br />
> gives me the value of email1, and
> <var:string value="account.01_tel" /><html:br />
> produces an empty line.
Perhaps Company values may be merged into the record rather than added
as a subordinate key (".telephones").
But you can also find them in the key "attributeMap"
...
NSMutableDictionary *valueList;
NSEnumerator *enumerator;
id value;
valueList = [NSMutableDictionary new];
enumerator = [[eo valueForKey:@"attributeMap"] objectEnumerator];
while ((value = [enumerator nextObject]) != nil) {
[valueList setObject:[NSDictionary dictionaryWithObjectsAndKeys:
@"companyValue", @"entityName",
[value valueForKey:@"companyValueId"], @"objectId",
[value valueForKey:@"companyId"], @"companyObjectId",
[self NIL:[value valueForKey:@"label"]], @"label",
[self NIL:[value valueForKey:@"type"]], @"type",
[self NIL:[value valueForKey:@"uid"]], @"uid",
[self NIL:[value valueForKey:@"value"]], @"value",
[value valueForKey:@"attribute"], @"attribute",
nil]
forKey:[value valueForKey:@"attribute"]];
}
.....