ars_GetListEntry
Brought to you by:
jeffmurphy
|
From: <wil...@em...> - 2002-04-08 17:40:16
|
I'm having a problem with converting the value of a selection field to its
text value. For example, I want to get the status for a bug, instead of
returning Open, Closed, etc. It returns the numeric value for the status -
Open = 0, Closed = 4. I want to get Open, Closed, etc. as output.
Using: Win NT, ARS 3.2, Perl 5.6, ARSperl 1.71
Here's my code:
my %field_ids = ars_GetFieldTable( $this->{ 'ctrl' }, $this->{ 'schema' } );
die "ars_GetFieldTable: $ars_errstr" unless( %field_ids );
@result = ars_GetListEntry( $this->{ 'ctrl' },
$this->{ 'schema' },
$this->{ 'qualifier' },
0,
[
{ columnWidth =>2, separator =>$this->{ 'fs' },
fieldId =>$field_ids->{'Priority'} },
{ columnWidth =>$width, separator =>$this->{ 'fs' },
fieldId =>$field_ids->{'Status'} }
] );
die "ars_GetListEntry: $ars_errstr" unless( @result );
Thanks
Wayne
---------------------------------------------------------------------------
To unsubscribe from this list, send mail to maj...@lu...
with a body of "unsubscribe arsperl". The subject line is ignored.
---------------------------------------------------------------------------
|