Chronoconnectivity, TCPDF & link to pdf

Chast 02 Sep, 2013
Dear Bob,
I am the developer Lorenzo Castellan Italian. You've already helped with Chronoform but I have another problem. I was able to work well TCPDF but now I wish I Chronoconnectivity, provide for a report with the pdf created by the action. On the site of Chronoengine.com I found this guide: [http://www.chronoengine.com/faqs/4133-how-can-i-create-a-pdf-including-form-results-.html] but I could not solve my problem. Check to see the list of files, but all are called "PDF" without their specific name and then also the links do not work.
HELP!!

lorenzo
GreyHead 02 Sep, 2013
Hi Lorenzo,

There really isn't enough information here to give you any help.

What setting do you have for the file name in the TCPDF action?

Bob
Chast 02 Sep, 2013
You're right:
I use the 4.0 version of ChronoForms
Joomla 2.5
in the column Chronoconnectivity for download use this code:
<?php
$alfa = "{cf_pdf_file}";
$beta = '<a href="';
$delta = "/components/com_chronoforms/pdf/modulo_assenze_docenti/";
$teta = '"target="_blank"/>{cf_pdf_file}</a>';
echo $beta.$delta.$alfa.$teta ;
?>

Thank you!

lorenzo
GreyHead 02 Sep, 2013
Hi Chast,

You can't use {input_name} in PHP code.

Please try a version like this instead:
<?php
echo "<a href='/components/com_chronoforms/pdf/modulo_assenze_docenti/{$row['cf_pdf_file']} target='_blank' />{$row['cf_pdf_file']}</a>";
?>

Bob
Chast 02 Sep, 2013
Dear Bob,
I copied and pasted your code. In the generated report in the column of file, no data appears not, nor the name of the pdf file will link to it.
So the code to reset the download file on the report is different from which ones to insert it into emails or messages of thanks?
I doing something wrong?
Thank you.

lorenzo
GreyHead 02 Sep, 2013
Hi Chast,

The I guess that there is no value for $row['cf_pdf_file']. What do you see in the Debugger output?

Bob
Chast 02 Sep, 2013
I am sending you a zip file with the backup of both ChronoForms both Chronoconnectivity.
One question, your book will be released for version 4.0?
Thank you very much Bob!

lorenzo
GreyHead 02 Sep, 2013
Hi Chast,

Unfortunately it's a lot of work to restore a ChronoConnectivity listing, create a table and add data to it so I probably won't do that.

What do you see in the Debugger output?

Bob

PS No particular plans for a CFv4 book yet - maybe this winter.
Chast 02 Sep, 2013
Dear Bob
This afternoon I can not because of hard work. But tomorrow I'll post the debug. I absolutely have to solve the problem. For the time t thank you so much and I send you back tomorrow.
Good day and thank you.

lorenzo
This topic is locked and no more replies can be posted.