new button

drashrafsabry

Well-known member
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
 

eugenio

Administrator
Staff member
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

Administrator
Staff member
Here:

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

there is an old post about that.

Best
 

eugenio

Administrator
Staff member
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,
 
Top