On Thu, Jun 17, 2010 at 10:38:12AM +0200, Wolfram Huettermann wrote:
Hello out there,
in Admin/Users/index.html (surely on the local-path), in the %init%-part
I implemented a
hash which looks like that:
my %NumHash = (21 = foo,
23 = bar,
25 = entry,
29 = exit);
It is for sure that $NumHash{21} displays foo, for instance.
I want to get a list with the following entries:
# RealNameNumHash
13 Obama, Barack
21 Reagan, Ronald foo
23 Clinton, Bill bar
25 Nixon, Richard entry
29 Washington, George exit
I do not think that $NumHash{__id__} works if I implement it in the
format string of my
collection list. What can I do else?
You really want to use a callback from RT__User/ColumnMap to add a
NumHash type that uses the passed $User object to lookup and return
what you want. If you're on 3.8.8 you get to configure the format
used on the User admin page from your RT_SiteConfig
-kevin
pgpZ0iQyu0Op7.pgp
Description: PGP signature
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com