Hi: I trying to build a remedy incident update script which can be used 
to update different fields under different circumstances. In other 
words, what needs to be updated is provided as an argument to the 
script. So what I include as part of of the ars_SetEntry for update 
needs to be built dynamically within the script based on argument to the 
script. But I am running into issues.

If I run the following statement, it updates the remedy incident fine

ars_SetEntry($ctrl, $schema, $record, 0, 536871244, 3) || die 
"ars_SetEntry(User): $ars_errstr";

But if I set a variable $updRemString and run the ars_SetEntry, it gives 
me an error as shown below
$updRemString = "536871244, 3"
ars_SetEntry($ctrl, $schema, $record, 0, $updRemString) || die 
"ars_SetEntry(User): $ars_errstr";

Error:
ars_SetEntry(User): [ERROR] Invalid number of arguments (ARERR #80000) 
at ./IncidentUpdProcess.sql line 75.

Any suggestions.

Thanks
Ravi


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to