Thread: [Arsperl-users] Trouble Setting Drop Down Menu Items with ARSperl
Brought to you by:
jeffmurphy
|
From: Jim H. <jf...@uf...> - 2009-11-09 17:14:11
|
I'm trying to set the value of a Drop Down menu in Remedy (in this case
"Ticket Owner" like so:
my $ars = new ARS (
-server => $server,
-username => $username,
-password => $password
);
my $form = $ars->openForm (-form => $schema);
$form->set(
-entry => $eid,
-gettime => 0,
-value => {
"Ticket Owner" => $name,
}
)
When I try this I get this error:
[ERROR] (Ticket Owner is not valid. Please select a value from the
drop down.) (ARERR #10000)
I can set them from the remedy client, but not from ARSperl -- does anyone
know the right way to set this?
Thanks,
----------------------------------------------------------------------
| Jim Hranicky, Security Engineer UF InfoSec Team |
| E202 SSRB Phone (352) 392-2061 |
| jf...@uf... |
----------------------------------------------------------------------
|
|
From: Rusty C. <rco...@ya...> - 2009-11-09 17:30:45
|
If I remember my ARSperl correctly you need to figure out the "Ticket Owner" field id and $name needs to be translated from the name of the value to the menu entry id. For instance if the ticket owner pulldown looks like this
0: tom
1: dick
2. george
and you wanted to assign the ticket to george then $name should equal 2. I believe this is how this is supposed to work. It's been a while since I worked with ARSperl.
Hope it helps,
Rusty
----- Original Message ----
From: Jim Hranicky <jf...@uf...>
To: ars...@ar...
Sent: Mon, November 9, 2009 7:46:34 AM
Subject: [Arsperl-users] Trouble Setting Drop Down Menu Items with ARSperl
I'm trying to set the value of a Drop Down menu in Remedy (in this case
"Ticket Owner" like so:
my $ars = new ARS (
-server => $server,
-username => $username,
-password => $password
);
my $form = $ars->openForm (-form => $schema);
$form->set(
-entry => $eid,
-gettime => 0,
-value => {
"Ticket Owner" => $name,
}
)
When I try this I get this error:
[ERROR] (Ticket Owner is not valid. Please select a value from the
drop down.) (ARERR #10000)
I can set them from the remedy client, but not from ARSperl -- does anyone
know the right way to set this?
Thanks,
----------------------------------------------------------------------
| Jim Hranicky, Security Engineer UF InfoSec Team |
| E202 SSRB Phone (352) 392-2061 |
| jf...@uf... |
----------------------------------------------------------------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
--
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Jim H. <jf...@uf...> - 2009-11-09 17:35:59
|
Rusty Copeland wrote: > If I remember my ARSperl correctly you need to figure out the "Ticket Owner" field id and $name > needs to be translated from the name of the value to the menu entry id. For instance if the > ticket owner pulldown looks like this > > 0: tom 1: dick 2. george > > and you wanted to assign the ticket to george then $name should equal 2. I believe this is how > this is supposed to work. It's been a while since I worked with ARSperl. Thanks, Rusty -- I should have mentioned in my post that I had tried setting $name to an integer and I still get the same error. Thanks, Jim |
|
From: Thilo S. <thi...@ap...> - 2009-11-09 17:34:35
|
This is probably a message defined in a filter somewhere (since the
message number is 10000).
I suppose that when you select a "Ticket Owner" in the Remedy client,
other fields are probably set as well (invisible to the user).
You might want to do an active link/filter log of that action to see
what really happens behind the scenes.
Regards,
Thilo
Jim Hranicky wrote:
> I'm trying to set the value of a Drop Down menu in Remedy (in this case
> "Ticket Owner" like so:
>
> my $ars = new ARS (
> -server => $server,
> -username => $username,
> -password => $password
> );
>
> my $form = $ars->openForm (-form => $schema);
>
> $form->set(
> -entry => $eid,
> -gettime => 0,
> -value => {
> "Ticket Owner" => $name,
> }
> )
>
> When I try this I get this error:
>
> [ERROR] (Ticket Owner is not valid. Please select a value from the
> drop down.) (ARERR #10000)
>
> I can set them from the remedy client, but not from ARSperl -- does anyone
> know the right way to set this?
>
> Thanks,
>
> ----------------------------------------------------------------------
> | Jim Hranicky, Security Engineer UF InfoSec Team |
> | E202 SSRB Phone (352) 392-2061 |
> | jf...@uf... |
> ----------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>
>
> --
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
|