Ask questions about installing and configuring ProcessMaker 3
By isolice
#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:
Code: Select all
$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;
Then in the output document:
Code: Select all
<tbody><!--@>Changes_FilesList-->
<tr>
<td>@@imagePath</td>
</tr>
<!--@<Changes_FilesList--></tbody>
However it's inserting \\ and \\ inbetween the img src= tag....
So I receive:
TCPDF ERROR: [Image] Unable to get image: \\"http://portal.xxx.com/sysABCD/en/neocla ... 7071700479\\"

Any ideas I'm stumped :o

Betvisa clone scripts are pre-built software solut[…]

A Bet365 Clone Script is essentially a ready-made […]

BC. Game Clone Script is a ready-made software sol[…]

A cryptocurrency exchange script is essentially pr[…]