Hello,
I have a form with some multiplier data, i managed to save/modify and show them correctly. My form in onSubmit event create a pdf using tcpdf action with all the data submitted, the 'standard' field shows correctly but the code for printing the multiplier field broke the pdf resulting a blank section with anymore data after that code
The code for printing the multiplier data is in a Custom Code after a Db Read action with Model Pdf_esp and Multi Read (the multi field are saved in a different table):
and in the TCPDF content i put this {mycontent} for retriving the multi field
All works if {mycontent} is dispalyed in a Custom Code, but like i said the tcpdf stops genereting when have to print that section.
Sorry for my bad english, hope someone can help me.
Thanks
I have a form with some multiplier data, i managed to save/modify and show them correctly. My form in onSubmit event create a pdf using tcpdf action with all the data submitted, the 'standard' field shows correctly but the code for printing the multiplier field broke the pdf resulting a blank section with anymore data after that code
The code for printing the multiplier data is in a Custom Code after a Db Read action with Model Pdf_esp and Multi Read (the multi field are saved in a different table):
<?php if ( !empty($form->data['Pdf_esp']) && is_array($form->data['Pdf_esp'] ) ) { $session = array(); $i =1; foreach ( $form->data['Pdf_esp'] as $s ) { $session[] = '<tr><td>Esperienza Lavorativa '.$i.'</td</tr>'; foreach ($s as $index => $value) If ($index != 'id') { $session[] .= "<tr><td>{$value}</td</tr>"; } $i ++;} $r = implode("\n",$session); $form->data['mycontent'] = $r; } ?>
and in the TCPDF content i put this {mycontent} for retriving the multi field
All works if {mycontent} is dispalyed in a Custom Code, but like i said the tcpdf stops genereting when have to print that section.
Sorry for my bad english, hope someone can help me.
Thanks