Trying to navigate from CustomField to CustomFieldValue

Hi people,

I’m developping statistics tables for my RT(IR) and I need the names of
CustomFieldValues from a CustomerField.
I’ve yet the CustomFieldValue ($cf->LoadByNameAndQueue(Name => N, Queue =>
Q)).
After, I try $listCFValues = $cf->Values() to take a CustomFieldValues, and
here I’m blocked. I can’t acces each CustomFieldValue from de list
$listCFValues.
Normally is $listvalues->First or ->Next but perl say there is nothing (I
ask the object for its Name(), so $listvalues->First->Name()).

Does somebody know a solution? or the reason of my error?

Thanks a lot!
Marc

Another time me…:stuck_out_tongue:

Andy Harrison wrote something similar as my problem…
http://lists.fsck.com/pipermail/rt-devel/2003-December/005211.html

but anybody answer he. Do I understand there isn’t solution to do this as I
try?
Andy, are you resolved it?

Thank you,
Marc-----Mensaje original-----
De: rt-devel-bounces@lists.bestpractical.com
[mailto:rt-devel-bounces@lists.bestpractical.com]En nombre de Marc Boix
Enviado el: martes, 23 de marzo de 2004 12:22
Para: rt-devel@lists.bestpractical.com
Asunto: [rt-devel] Trying to navigate from CustomField to
CustomFieldValue

Hi people,

I’m developping statistics tables for my RT(IR) and I need the names of
CustomFieldValues from a CustomerField.
I’ve yet the CustomFieldValue ($cf->LoadByNameAndQueue(Name => N, Queue =>
Q)).
After, I try $listCFValues = $cf->Values() to take a CustomFieldValues, and
here I’m blocked. I can’t acces each CustomFieldValue from de list
$listCFValues.
Normally is $listvalues->First or ->Next but perl say there is nothing (I
ask the object for its Name(), so $listvalues->First->Name()).

Does somebody know a solution? or the reason of my error?

Thanks a lot!
Marc

rt-devel mailing list
rt-devel@lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-devel

Marc Boix wrote:

Another time me…:stuck_out_tongue:

Andy Harrison wrote something similar as my problem…
http://lists.fsck.com/pipermail/rt-devel/2003-December/005211.html

but anybody answer he. Do I understand there isn’t solution to do this as I
try?
Andy, are you resolved it?
$CF->LoadByNameAndQueue( Name => ‘N’, Queue => ‘Q’ );

!!!

die ‘CF missed’ unless($CF->id);

my $CFVs = $CF->Values();
while ( my $CFV = $CFVs->Next ) {
print $CFV->Name . ", " . $CFV->Description . “\n”;
}

That works fine!! :slight_smile:

Thank you very much!
Marc

Enviado el: martes, 23 de marzo de 2004 13:49
CC: rt-devel@lists.bestpractical.com
CustomFieldValue

Marc Boix wrote:

Another time me…:stuck_out_tongue:

Andy Harrison wrote something similar as my problem…
http://lists.fsck.com/pipermail/rt-devel/2003-December/005211.html

but anybody answer he. Do I understand there isn’t solution to do this as
I
try?
Andy, are you resolved it?
$CF->LoadByNameAndQueue( Name => ‘N’, Queue => ‘Q’ );

!!!

die ‘CF missed’ unless($CF->id);

my $CFVs = $CF->Values();
while ( my $CFV = $CFVs->Next ) {
print $CFV->Name . ", " . $CFV->Description . “\n”;
}

Thank you,
Marc

-----Mensaje original-----
De: rt-devel-bounces@lists.bestpractical.com
[mailto:rt-devel-bounces@lists.bestpractical.com]En nombre de Marc Boix
Enviado el: martes, 23 de marzo de 2004 12:22
Para: rt-devel@lists.bestpractical.com
Asunto: [rt-devel] Trying to navigate from CustomField to
CustomFieldValue

Hi people,

I’m developping statistics tables for my RT(IR) and I need the names of
CustomFieldValues from a CustomerField.
I’ve yet the CustomFieldValue ($cf->LoadByNameAndQueue(Name => N, Queue =>
Q)).
After, I try $listCFValues = $cf->Values() to take a CustomFieldValues,
and