[rt-users] Hashes in Collectionlist for Users

Kevin Falcone falcone at bestpractical.com
Thu Jun 17 10:52:29 EDT 2010


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:
>    #       RealName            NumHash
>    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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100617/39222910/attachment.sig>


More information about the rt-users mailing list