Print PDF Custom Module in 7.10.4


I’m new on Suite and PHP both. I’ve managed to create a Custom module named PurchaseOrder new I want to have a print PDF fuction in detail view.

I tried few examples on the form but failed on all.

Some how I’ve managed to add button in detail view of my custom module using following PHP.

4 => 
          array (
            'customCode' => '<input type="button" class="button" onClick="showPopup(\'pdf\');" value="{$MOD.LBL_PRINT_AS_PDF}">',

Can someone help me!! Urgent

Maybe you need this

1 Like

Thank you for the help.

PDF was created.

Thank you