- Mon Dec 17, 2018 5:54 pm
#822100
Hi everyone,
I'm having an issue with using a variable image tag in the document output
I have the following trigger run before:
So I receive:
TCPDF ERROR: [Image] Unable to get image: \\"http://portal.xxx.com/sysABCD/en/neocla ... 7071700479\\"
Any ideas I'm stumped
I'm having an issue with using a variable image tag in the document output
I have the following trigger run before:
Code: Select all
Then in the output document:
$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)
{
@@imagePath = 'http://portal.xxx.com/sysABCD/en/neoclassic/cases/cases_ShowDocument?a=' . $result[1]['APP_DOC_UID'];
}
$img=@@imagePath;
$img1='<img src="'.$img.'" />';
@@imagePath=$img1;
Code: Select all
However it's inserting \\ and \\ inbetween the img src= tag.... <tbody><!--@>Changes_FilesList-->
<tr>
<td>@@imagePath</td>
</tr>
<!--@<Changes_FilesList--></tbody>
So I receive:
TCPDF ERROR: [Image] Unable to get image: \\"http://portal.xxx.com/sysABCD/en/neocla ... 7071700479\\"
Any ideas I'm stumped