[OGo-Developer] accessing telephone numbers of team members in OGOGroupsPage
Helge Hess
developer@opengroupware.org
Wed, 7 Mar 2007 09:52:58 +0100
On Mar 7, 2007, at 08:02, Sebastian Reitenbach wrote:
> I haven't tried the WORepetition yet
Then just do it.
> when I add lines like these:
> <var:string value="account.companyValue.email1" /
> ><html:br />
> <var:string value="account.telephones.01_tel" /
> ><html:br />
> then I see the following in the webui: ("","","","") (depending on
> companyValue
> or telephones)
When you invoke -valueForKey: on an array, it will return an array
containing the values for the keys. Since the objects contained in
the 'telephones' array do not have a '01_tel' key, you end up having
and array of empty values.
You probably want to use 'number', 'type' or something like that.
> when I add a line like this:
> <var:string value="account.email1" /><html:br />
> then the value of email1 shows up in the WebUI.
If account is a document object (eg SkyAccountDocument), not an EO,
other rules apply. Document objects are smarter about their
relationships.
It could also be that companyValues are always applied directly on
the EO object, not sure. It probably is this way.
> and finally, when I add a line like this:
> <var:string value="account.01_tel" /><html:br />
>
> an empty line is produced.
>
> now the question: what are the differences between these two
> EOGenericRecords,
> so that I can make the extended attributes show up in the webui,
> but not the telephone
> numbers?
Which *two* EOGenericRecords? I see just one, 'account'. If it is in
fact an EO.
Helge
--
Helge Hess
http://www.helgehess.eu/