- Fri Dec 21, 2018 6:02 pm
#822182
Hello,
I have a dynaform where 2 files could be uploaded depending on the conditions met in the form.
So File 1 and File 2 are not required
File 1 or File 2 could either be not uploaded or one of the other could be or both could be uploaded.
The uploads work fine.
Next step when you want the next user to view the uploaded document is where I am having a problem. I have a trigger setup to look for the files.
I added the @@file2_uploadpath thinking this would resolve my issue, but it doesn't. Is there a way to place and uploaded file into a link based on the variable it was uploaded as?
I have never tried to have 2 uploads in a case. I can't do this as a multiple upload as they pertain to different subject matter in the case.
I have a dynaform where 2 files could be uploaded depending on the conditions met in the form.
So File 1 and File 2 are not required
File 1 or File 2 could either be not uploaded or one of the other could be or both could be uploaded.
The uploads work fine.
Next step when you want the next user to view the uploaded document is where I am having a problem. I have a trigger setup to look for the files.
I added the @@file2_uploadpath thinking this would resolve my issue, but it doesn't. Is there a way to place and uploaded file into a link based on the variable it was uploaded as?
I have never tried to have 2 uploads in a case. I can't do this as a multiple upload as they pertain to different subject matter in the case.
Code: Select all
Thank you again for your help.$caseId = @@APPLICATION;
$query = "SELECT APP_DOC_UID FROM APP_DOCUMENT WHERE APP_UID='$caseId' AND APP_DOC_TYPE='INPUT' AND APP_DOC_STATUS='ACTIVE'";
$result = executeQuery($query);
if (is_array($result) and count($result) > 0)
{
@@file1_uploadpath = 'https://"server"/sysworkflow/en/neoclassic/cases/cases_ShowDocument?a=' . $result[1]['APP_DOC_UID'];
@@file2_uploadpath = 'https://"server"/sysworkflow/en/neoclassic/cases/cases_ShowDocument?a=' . $result[2]['APP_DOC_UID'];
}