[rt-users] Pulling CustomFieldValues
Şubredu Manuel
diablo at iasi.roedu.net
Thu Nov 30 02:46:41 EST 2006
Stephen Turner wrote:
> Hi Mathew,
>
> You're getting close! The Values method actually returns a CustomFieldValues
> object, even though a print will show a hash. This object represents a
> collection of CustomFieldValue objects and you can iterate through the value
> objects using the RT collections API (see RTx::SearchBuilder):
>
> My $cfvalues = $cf->Values($cf_name);
> while (my $cfval = $cfvalues->Next() ){
> print $cfval->Name . "\n";
I think that
print $cfval->Name,$/;
or
print sprintf("%s\n", $cfval->name)
is more appropriate and more correctly
>:)
More information about the rt-users
mailing list