[rt-devel] Trying to navigate from CustomField to CustomFieldValue

Ruslan U. Zakirov cubic at acronis.ru
Tue Mar 23 07:48:46 EST 2004


Marc Boix wrote:
> Another time me...:P
> 
> 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 at lists.bestpractical.com
> [mailto:rt-devel-bounces at lists.bestpractical.com]En nombre de Marc Boix
> Enviado el: martes, 23 de marzo de 2004 12:22
> Para: rt-devel at 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 at lists.bestpractical.com
> http://lists.bestpractical.com/mailman/listinfo/rt-devel
> 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.bestpractical.com
> http://lists.bestpractical.com/mailman/listinfo/rt-devel




More information about the Rt-devel mailing list