Ask questions about installing and configuring ProcessMaker 3

Moderator: amosbatto

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'];
}
[email protected]@imagePath;
$img1='<img src="'.$img.'" />';
@@imagePath=$img1;
Then in the output document:
Code: Select all
<tbody><[email protected]>Changes_FilesList-->
<tr>
<td>@@imagePath</td>
</tr>
<[email protected]<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
User avatar
By amosbatto
#822101
In your Output Document template, you need to access the variable as @#imagePath, so that quotation marks are not escaped.

The second thing that you need to do is edit your workflow/engine/config/env.ini file and add the following line:
Code: Select all
disable_download_documents_session_validation=1
See: https://wiki.processmaker.com/3.2/Confi ... estriction
Loading issue

How much of the source code are you going to hav[…]

Hi, I have a case which the duties of the users ar[…]

Starting subprocess

Can we start multiple instances of a sub process. […]

mobile app source code

ProcessMaker Mobile App Android, Use out-of-the-bo[…]