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
Custom Print Report
Re: Custom Print Report
Solved by myself... no more help needed.
For information:
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'bericht.php';
header("Location: http://$host$uri/$extra?id=".$selected_id);
exit;
...is the solution
For information:
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'bericht.php';
header("Location: http://$host$uri/$extra?id=".$selected_id);
exit;
...is the solution
Re: Custom Print Report
Hi, I am sure you spent many hours of your time putting this addition together. I am looking to do the same thing and generate a pdf document from the data in the database. Is there any chance you would be willing to share your work with me?
Thank you in advance.
Chris
Thank you in advance.
Chris
Re: Custom Print Report
Please first have a look at my sample page
http://appgini.eickert.info
You can login with:
name: member1
password: member1
You can see there all customizations I made so far in appgini. If this is what you want, please contact me on PM.
Thanks...
Marcus
http://appgini.eickert.info
You can login with:
name: member1
password: member1
You can see there all customizations I made so far in appgini. If this is what you want, please contact me on PM.
Thanks...
Marcus
Re: Custom Print Report
hello
please can you share with me Code for Logs , i like to use in my project
thanks a lot
please can you share with me Code for Logs , i like to use in my project
thanks a lot