Sort by Custom field

I have some users asking to be able to “CLICK” on the headers in a search.
Headers that contain custom fields are not clickable. How can I make them
functional and clickable by our users?

Matt

Hello,

Anyone have an idea how to do that?
@Matt: could you find any solution?

BR,
Ivan2009/3/17 Matt Hoover mhoover@thectogroup.com

I have some users asking to be able to “CLICK” on the headers in a search.
Headers that contain custom fields are not clickable. How can I make them
functional and clickable by our users?

Matt


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Hi all,

I have found a solution (I hope this is enough)

  • add to the rt3/share/html/Elements/RT__Ticket/ColumnMap (RT 3.8.2)

Test => { #
name used in references
attribute => ”CF.{Test}”, # doing SortBy
title => ‘Test’, # this is shown as header
value => sub {
my $CFName = ”Test”; # this is the Custom Field name
my $values = $[0]->CustomFieldValues( $CFName );
my @values = map {
(
($
->CustomFieldObj->Type eq ‘Image’)
? ($m->scomp( ‘/Elements/ShowCustomFieldImage’,
Object => $_ ))
: $_->Content
),

’,
} @{ $values->ItemsArrayRef };
pop @values; # Remove that last

return @values;
},
},

and than you can used ‘Test’ in Tickets -> Advanced -> Format

I hope this is good for you,

Zodal

Ivan Samarin-2 wrote:

Hello,

Anyone have an idea how to do that?
@Matt: could you find any solution?

BR,
Ivan

I have some users asking to be able to “CLICK” on the headers in a
search.
Headers that contain custom fields are not clickable. How can I make
them
functional and clickable by our users?

Matt


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

View this message in context: http://www.nabble.com/sort-by-Custom-field-tp22550419p23038218.html