The easiest way to relate field ids to names is probably to look them up 
in the admin tool.
Alternatively, ars_GetFieldTable returns a hash with field names as keys 
and IDs as values:

my %fieldTable = ars_GetFieldTable( $ctrl, $form );
foreach my $field ( keys %fieldTable ){
        print "$field: $fieldTable{$field}\n";
}

The values of radio buttons, drop down lists and checkboxes are stored 
internally as integers, e.g. 0,1,2,3 for "new", "assigned", "work in 
progress", "closed". Again in this case the admin tool is probably the 
best method to figure it out.


Thilo



Christopher Rogall schrieb:
> Thilo
> 
> ok, I get the field IDs with ars_GetFieldTable, but wich field ID is the 
> right one.
> The Field is a drop down list, but I must also enable a radio button and I 
> must write a text to a textbox.
> 
> Thanks for your help
> Chris
> 
> 
>> You have to use the field ID of "T_Status".
>> Moreover, T_Status is probably a selection field (radio button or 
>> dropdown list), and you have to use the numerical value of "work in 
>> progress", e.g.
>>
>> ars_SetEntry($c, $schema, $entry, 0, 536870915, 2 )
>>
>>
>> Regards,
>> Thilo Stapff
>>
>>
>> Christopher Rogall schrieb:
>>> Hi
>>>
>>> Running Perl 5.8.8, Remedy 6.3 API, ARSPerl 1.84.
>>>
>>> I can“t change fields. For example:
>>>
>>> I open a ticket and read all information. The Status is "assigned" and I
>> will change it to "Work in progress". How can I do this?
>>> ars_SetEntry($c, $schema, $entry, 0, "T_Status", "work in progress")||
>> die "ars_SetEntry(User): $ars_errstr";
>>> This is incorrect. ARERR #314
>>>
>>> Please, can anyone help me?
>>>
>>> Thx Chris
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Arsperl-users mailing list
>> Arsperl-users@arsperl.org
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to