DaDaBIK
This forum is devoted to the discussion about the software DaDaBIK database front-end
the PHP Database application generator for MySQL, PostgreSQL and SQLite; also available for Wordpress.

Welcome! Log In Create A New Profile

Advanced

new button

Posted by drashrafsabry 
new button
March 18, 2019 05:22AM
can a button be added beside edit/delete/details

and if yes

can i add a button to directly print the pdf output using a named template , intead of pressing on details , then pdf then choosing a template then generating a pdf then printing it
Re: new button
March 19, 2019 03:51AM
Hello,
you can add custom buttons, everything related to custom buttons is in the documentation in the chapter "Custom buttons".

About your second question: you should simulate the call to the PDF generation URL, passing exactly the same parameters, I would say it is doable.

Best,

________________________________________________________
Eugenio |\.-./| DaDaBIK developer and project admin
Re: new button
March 19, 2019 04:11AM
Here:

https://dadabik.com/forum/read.php?1,20784,21429

there is an old post about that.

Best

________________________________________________________
Eugenio |\.-./| DaDaBIK developer and project admin



Edited 1 time(s). Last edit at 03/19/2019 04:11AM by eugenio.
Re: new button
March 19, 2019 04:14AM
any hints for a medical doctor like me and not a programmer
Re: new button
March 22, 2019 11:41AM
In the post I linked there is the code you can use to print from the details page and edit page using a specific template, posted by another user. Just use that code, changing from the header statement the "where_field" parameter (the primary key of your table) and the "pdf_template" parameter (the PDF template you want to force).

Best,

________________________________________________________
Eugenio |\.-./| DaDaBIK developer and project admin
Sorry, only registered users may post in this forum.

Click here to login