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

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]