[rt-users] Hashes in Collectionlist for Users

Wolfram Huettermann wolfram.huettermann at desy.de
Mon Jun 21 08:42:03 EDT 2010


Kevin Falcone wrote:
> 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
>   
> ------------------------------------------------------------------------
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
Hi Kevin,

thanks for your advice. Without your help, it would have lasted at least 
a week for me to find it out.

Greetings,

Wolfram

(my English nick is Wolf)





More information about the rt-users mailing list