Ask questions about installing and configuring ProcessMaker 3
By mjeanbaptiste
#795294
Hi, I'm having an issue with my output document the date appears as "" instead of the actual date selected by the user: the html coding is as follow:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<p align="center"><font size="4"><b>DEPENSES DE FORAGE @#nomclient<br /></b></font></p>
<hr />
<table cellspacing="0" border="0">
<tbody>
<tr>
<td align="center" style="min-width: 50px;">ATELIER:</td>
<td align="center" style="min-width: 50px;">@#Atelier</td>
<td style="min-width: 15px;"></td>
<td align="center" style="min-width: 50px;">CHEF DE CHANTIER:</td>
<td style="min-width: 50px;">@#chefchantier</td>
</tr>
<tr>
<td align="center" style="min-width: 50px;">LOCALISATION:</td>
<td align="left" style="min-width: 50px;">@#localisation</td>
<td style="min-width: 15px;"></td>
<td align="center" style="min-width: 50px;">Projet N0.:</td>
<td align="center" style="min-width: 50px;">@#numeroprojet</td>
</tr>
<tr>
<td align="center" style="min-width: 50px;">Ch&egrave;que No.:</td>
<td align="center" style="min-width: 50px;">@#numerocheque</td>
<td style="min-width: 15px;"></td>
<td align="center" style="min-width: 50px;">DATE CK:</td>
<td style="min-width: 50px;">@#Dateducheque</td>
</tr>
<tr>
<td align="center" style="min-width: 50px;">DEVISE:</td>
<td align="center" style="min-width: 50px;">@#devise_label</td>
<td style="min-width: 15px;"></td>
<td align="center" style="min-width: 50px;">Montant CK :</td>
<td align="center" style="min-width: 50px;">@#montantcheque</td>
</tr>
<tr>
<td align="center" style="min-width: 50px;">Taux du jour :</td>
<td align="center" style="min-width: 50px;">@#tauxdujour</td>
<td style="min-width: 15px;"></td>
<td style="min-width: 50px;"></td>
<td style="min-width: 50px;"></td>
</tr>
</tbody>
</table>
<hr />
<p align="center"></p>
<p align="center"><font size="4"><b>DETAILS DES DEPENSES<br /></b></font></p>
<table cellspacing="0" border="1">
<tbody>
<tr><th align="center">Description</th><th align="center">Quantite</th><th align="center">Cout Unitaitre HTG</th><th align="center">Total</th><th align="center">Observation</th></tr>
<!--@>itemgrid-->
<tr>
<td>@#Description</td>
<td align="center">@#Quantite</td>
<td align="center">@#Coutunitaire</td>
<td align="center">@#Total</td>
<td>@#Observation</td>
</tr>
<!--@<itemgrid--></tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td align="center"><b>Total</b></td>
<td align="center">@#totalCost</td>
</tr>
</tbody>
</table>
<p></p>
<p><b>D&eacute;caissement fonds pour travaux</b>: @#decaissement1_label</p>
<p></p>
<p></p>
<p></p>
</body>
</html>


Can you please help with this matter?
User avatar
By amosbatto
#795309
You should check to see whether you have spelled the date variable correctly. Turn on the Debugger when running a case to verify the spelling of the Dateducheque variable and whether it is getting saved when the DynaForm which contains the field is submitted. If not, then you might not have a variable associated with the datetime field. Check the properties of the field.

The datetime variable will be in YYYY-MM-DD HH:MM:SS format. If you want it in the format that you configured for your datetime control in the Dynaform, then you need to use: @#Dateducheque_label

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]