Custom "Generate PDF" function goes to a blank page

Hi,

I have implemented a custom module and added the option (as per a few articles here on the forums) to generate PDFs, however, when I click on this, I get the pop-up and I can select my template, but it just redirects to “http://192.168../mirror/index.php?entryPoint=formLetter” with a blank page.

What I have done:

Added the button to the “detailviewdefs.php” file in “custom\modules\MyModule\metadata”.

4 => array ('customCode' => '<input type="button" class="button" onClick="showPopup();" value="Print Options">'),

Created the “view.detail.php” in “custom\modules\MyModule\views”.

require_once('modules/AOS_PDF_Templates/formLetter.php');
formLetter::DVPopupHtml('MyModule');

On top of this, I have added my module to the PDF Template list and created a template for this. I have tried creating multiple templates, to no avail.

Have I missed something?

Regards

Anthony

Hi Anthony,

If you search for formletter, there are some posts.

Have you tried this topic?

Thanks,

Will.