Robert,

I would add one more "part" to your Perl script. Have it use ARSPerl
to submit the attachment to an ARS form. Have it spit out (to STDOUT)
the Entry ID of the record it creates. Then have the second active
link do a SETFIELD action to get the attachment to the current screen
and add one more action to delete the temp data row that the script
created.

That should get the job done nicely.

if you do not want to use ARSPerl then you could also opt for a
similar approach.

Have the script spit back the full path to the file and have an active
link do a submit to a temp form. Have a filter do the
PERFORM-ACTION-ADD-ATTACHMENT process to pull the file from the server
OS into the record. Then have another active link action do the
SETFIELD action to get the record to the current transaction and
delete the temp record. (That can work too.)


Oh.. make sure that the permission on the temp row allow for the
"right" user to own it and you should be able to let a read user mark
it as "ready for delete" with a push action to have a filter delete
the record. (Best way to delete data IMHO.)

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.



On 11/14/06, Halstead, Robert <[EMAIL PROTECTED]> wrote:
**

Btw, the client is on windows, server is on unix.  Could it be that I can't
add an attachment from the server using an AL?

Bob Halstead


 ________________________________
 From: Halstead, Robert
Sent: Tuesday, November 14, 2006 1:54 PM
To: '[email protected]'
Subject: PERFORM-ACTION-ADD-ATTACHMENT



I have this form in remedy that runs a perl script on the server via AL.
This perl script creates an excel file based on command line arguments
passed to it by remedy.  I then have another AL that runs right after it
doing a PERFORM-ACTION-ADD-ATTACHMENT process cmd.

For some reason the PERFORM-ACTION-ADD-ATTACHMENT command fails or doesn't
do anything.

this is all on a unix box btw.

my run process cmd looks like this: PERFORM-ACTION-ADD-ATTACHMENT 536880912
/home/jsoria/SCRIPTS/PERL/REPORTS/log.txt

The ID is correct, it points to a attachment field (not the pool). That txt
file is at that location as well.

One thing, do I need to add a @@: in front of that?  I've tried and I get a
ARERR 90 Connection error.

Anyone think of what I'm doing wrong?


Bob Halstead __20060125_______________________This posting
was submitted with HTML in it___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"

Reply via email to