RT4: Customizing With Callbacks

i’m too novice in RT and Mason. i want to display a user custom field value
depending of a ticket custom field value(a select for users) in Ticket
display interface (/usr/share/request-tracker4/html/Ticket/Display.html)

i followed this link:


but i still could’int understand how this callback communicate with args in

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-Customizing-With-Callbacks-tp57077.html

This is my scripts.

in /usr/share/request-tracker4/html/Elements/ShowCustomFields file. i
added i my custom callback.

% $m->callback( CallbackName => 'Initial', Object => $Object, CustomFields => $CustomFields);

This is my custom callback

if ($Object) {
    my $UserCustomFields;
    while ( my $CustomField = $CustomFields->Next ) {
        if ($CustomField->id == '1'){
            my $Values = $Object->CustomFieldValues( $CustomField->Id );
            my $User = RT::User->new(RT::SystemUser);
            my $UserValues = $User->CustomFieldValues('2');
            $UserCustomFields = $User->CustomFields('2');

    push $CustomFields  , $UserCustomFields->First;

$Object => undef
$CustomFields => undef

But i got nothing. is every thins is ok? and can i push my
$UserCustomFields into $CustomFields array?

View this message in context: http://requesttracker.8502.n7.nabble.com/RT4-Customizing-With-Callbacks-tp57077p57080.html