Custom fields on templates

Is there a way to see all of the values stored in $Ticket just for
debugging purposes from the template ?

I am having problems calling CustomField values into the template.

I am including this in my templates

{$Ticket->CustomFieldValues(‘CustomFieldName’)}

and i am recieving

RT::ObjectCustomFieldValues=HASH(0x3932cd0)
RT::ObjectCustomFieldValues=HASH(0x3931640)

instead of the values.

At Thursday 6/8/2006 07:15 PM, you wrote:

Is there a way to see all of the values stored in $Ticket just for
debugging purposes from the template ?

I am having problems calling CustomField values into the template.

I am including this in my templates

{$Ticket->CustomFieldValues(‘CustomFieldName’)}

and i am recieving

RT::ObjectCustomFieldValues=HASH(0x3932cd0)
RT::ObjectCustomFieldValues=HASH(0x3931640)

instead of the values.

Justin,

[apologies for getting your name wrong on my other email!]

Unless you’re dealing with a multiple-value CF, you might have better
luck with :

{$Ticket->FirstCustomFieldValue(‘CustomFieldName’)}

If you are using a multi-value CF, you’ll have to iterate through the
ObjectCustomFieldValues collection returned by
$Ticket->CustomFieldValues and print each one in turn.

Seeing all the values stored in $Ticket wouldn’t help, because
technically the CF values aren’t stored in $Ticket.

Steve