Custom Print Report
Posted: 2017-04-25 10:37
Hi @all...
I made a custom PDF-report for my appgini-app with TCPDF.
Everything works fine so far. Now I want to implement it by clicking the "Print" button in the "Print Preview" modus. So I tried to change the DVP.html in the templates folder. Now there is my problem....
By clicking the print button it should call a php-file in the root directory named bericht.php. This PHP needs (of course) the id of the dataset as a parameter. So how do I get this parameter within the onclick function?
f.ex. when I call my PHP directly by opening localhost/bericht.php?id=1 everything works fine... But I don't now how to pass the parameter in the DVP.html.
Any suggestions?
Thanks
Marcus
I made a custom PDF-report for my appgini-app with TCPDF.
Everything works fine so far. Now I want to implement it by clicking the "Print" button in the "Print Preview" modus. So I tried to change the DVP.html in the templates folder. Now there is my problem....
By clicking the print button it should call a php-file in the root directory named bericht.php. This PHP needs (of course) the id of the dataset as a parameter. So how do I get this parameter within the onclick function?
f.ex. when I call my PHP directly by opening localhost/bericht.php?id=1 everything works fine... But I don't now how to pass the parameter in the DVP.html.
Any suggestions?
Thanks
Marcus