Adding an existing file to a file_upload widget

126 views
Skip to first unread message

jin.dh...@teknion.com

unread,
Feb 24, 2017, 4:15:28 PM2/24/17
to Fujitsu RunMyProcess Developer Community
I have a process that is an update action for another completed process.

What it does it copy the values from the original process and allow the user to update those values.

OK so what I need to do is also copy the uploaded files over to this new process.

I tried using the selectFileId(), but this doesn't work as I assumed it would. I give it the file id's for the uploaded files from the original process.


//add the files copied from the original process to this one
$.each(files, function(file){
id_uploads.setFileId(file.id);
}

Is there a proper way to do this?

Pray Desai

unread,
Feb 24, 2017, 4:33:57 PM2/24/17
to suppor...@runmyprocess.com
Hi Jin,

You need to use attach_file() freemarker function as documented here :
http://docs.runmyprocess.com/API_Reference/FM/Application.html#attach_file

This function only works when computed in 'Input variables' of a manual task.

Regards,
Pray Desai,
Fujitsu RunMyProcess.

--

teknion.com <http://www.teknion.com>

<https://www.facebook.com/Teknion> <https://twitter.com/teknion>
<https://www.pinterest.com/teknion/>
<https://www.linkedin.com/company/teknion> <https://instagram.com/teknion/>
<https://www.youtube.com/Teknion>
<https://itunes.apple.com/us/app/teknion-eshow-chicago/id529619476?mt=8>

Confidentiality Notice: This communication, including any attachments, may
contain information that is confidential and privileged. [It may constitute
non-public information and is intended to be conveyed only to the
designated recipient(s).] If the reader or recipient of this communication
is not the intended recipient, or you believe that you have received this
communication in error, please notify us immediately by return e-mail and
promptly delete this e-mail including any attachments without reading or
saving them in any manner. Any other distribution, copying or disclosure is
prohibited and may be unlawful. We accept no responsibility for changes
made to this e-mail or to any attachments after transmission from our
office.

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/7606845b-6f37-4320-9418-8d78d5cc9381%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Reply all
Reply to author
Forward
0 new messages