Methods on custom fields besides 'FirstCustomFieldValue()'?

Hi y’all.

I’ve seen a lot of examples now where people have accessed the value of a
custom field via a statement like:

$the_thing_I_want = $self->TicketObj->FirstCustomFieldValue( ‘FIELD_NAME’ )

However, when my custom field is of type ‘Select multiple values’, I can
assign multiple values through the web interface, but the above syntax
doesn’t access them for manipulation and other fun.

I have managed to see inside the result of
$self->TicketObj->CustomFieldValues( ‘FIELD_NAME’ ); I’m still deciphering
it but it is clearly not the “plural” version of the thing above. Maybe
there is a chain of objects that will get me there via the
ObjectCustomFieldValues table and some method it knows??

As always, any pointers to comprehensive docs on all the methods related to
custom-field objects would be great!

Thanks,

Sam

The information contained in this email is strictly confidential and subject
to the Confidentiality Notice at www.mcfina.com/emailpolicy

RT’s source code is very easy to read. See CustomField_Overlay.pm.On Tue, Jun 3, 2008 at 5:37 PM, Sam A. Hicks shicks@mcfina.com wrote:

Hi y’all.

I’ve seen a lot of examples now where people have accessed the value of a
custom field via a statement like:

$the_thing_I_want = $self->TicketObj->FirstCustomFieldValue( ‘FIELD_NAME’ )

However, when my custom field is of type ‘Select multiple values’, I can
assign multiple values through the web interface, but the above syntax
doesn’t access them for manipulation and other fun.

I have managed to see inside the result of
$self->TicketObj->CustomFieldValues( ‘FIELD_NAME’ ); I’m still deciphering
it but it is clearly not the “plural” version of the thing above. Maybe
there is a chain of objects that will get me there via the
ObjectCustomFieldValues table and some method it knows??

As always, any pointers to comprehensive docs on all the methods related to
custom-field objects would be great!

Thanks,

Sam


The information contained in this email is strictly confidential and
subject to the Confidentiality Notice at www.mcfina.com/emailpolicy


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