Page 1 of 1

Call my own print procedure in detail view

Posted: 2022-02-14 17:55
by gerardus
Hi all,
I'm using AppGini version 22.11.
Is there a way to call my own php program when the user clicks "Print Preview" in the Detail View. (Or add another Print button)
I need to generate a special PDF .
Thanks,
Gerard.

Re: Call my own print procedure in detail view

Posted: 2022-02-14 19:51
by pbottcher
Hi,

you can check in the hooks/tablenname.php -> _init function for the dvprint_x parameter in the $_POST array. If set to 1 redirect to your specific page.