- Mon Jun 29, 2015 8:08 am
#783568
hi all,
i try to generate an output document with an image previously loaded and got image not found.
bad generated link
A two task process
task1 : some text and a file field
task2 : output document
output document : one image and url set to @@imagePath
a trigger : retrieve the path in the form http://xxxxxxx.com/sysworkflow/fr/neocl ... 5017755385
with this generated link in a browser, i am able to download the right file but it generates an error in the output document : image not found .
How can i generated the link in order to got something like http://xxxxxxx.com/sysworkflow/fr/neoclassic.... /xxxx.jpg ?
thanks
i try to generate an output document with an image previously loaded and got image not found.
bad generated link
A two task process
task1 : some text and a file field
task2 : output document
output document : one image and url set to @@imagePath
a trigger : retrieve the path in the form http://xxxxxxx.com/sysworkflow/fr/neocl ... 5017755385
with this generated link in a browser, i am able to download the right file but it generates an error in the output document : image not found .
How can i generated the link in order to got something like http://xxxxxxx.com/sysworkflow/fr/neoclassic.... /xxxx.jpg ?
thanks
Code: Select all
$caseId = @@APPLICATION;
$sys = @@SYS_SYS;
$skin = @@SYS_SKIN;
$lang = @@SYS_LANG;
$query = "SELECT C.CON_VALUE AS FILE_NAME, C.CON_ID AS FILE_UID,
AD.APP_DOC_CREATE_DATE AS FILE_DATE FROM APP_DOCUMENT AD, CONTENT C
WHERE AD.APP_UID='$caseId' AND AD.APP_DOC_FIELDNAME='imageFile' AND AD.APP_DOC_STATUS='ACTIVE'
AND AD.APP_DOC_UID=C.CON_ID AND C.CON_CATEGORY='APP_DOC_FILENAME' AND C.CON_VALUE<>''";
$result = executeQuery($query);
if (is_array($result) and count($result) > 0) {
@@imagepath =" http://xxxxxxx.com/sys$sys/$lang/$skin/cases/cases_ShowDocument?a=".$result[1]['FILE_UID'];
}