Hello everybody (from France)
I have a question for you... I didn't findd the right answer in the forum :
- I would like to print some tables view with the printing button but I want to have only 4 fields of the table onthe printed page.
In my mind there are different possibilities
- Working with hook but I'm not a very good codeur
- Changing the DVP file
- Creating a second table wich is similar of the parent table with only the specifics fields.
I prefer the last solution but I don't know how to do it
Thanks for your help
Print with only some fields
Re: Print with only some fields
Hi Stef,
may be check the invoice course on Udemy or you could work with FPdF where you can fully parameter your print template.
may be check the invoice course on Udemy or you could work with FPdF where you can fully parameter your print template.
Re: Print with only some fields
Here is a suggested solution without creating a new table or editing generated files ... in the hooks/footer-extras.php file, add this code:
You can test your code by opening the print preview of the page fromt he browser menu.
Code: Select all
<script>
$j(function() {
// change 'tablename' below to the name of the concerned table
if(location.href.match(/tablename/) == null) return;
// change the number '4' below to the index of the field you want to hide when printing .. first field is 0
// and repeat this line for each field you want to hide
$j('div.form-group').eq(4).addClass('hidden-print');
})
</script>
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
-
- Posts: 14
- Joined: 2014-12-05 18:34
Re: Print with only some fields
Hello to you all
In fact, I've found the answer. With the new possibilities of appgini we can choose the fields we want to see and so the fields we want to print...
I love AppGini !!!!
In fact, I've found the answer. With the new possibilities of appgini we can choose the fields we want to see and so the fields we want to print...
I love AppGini !!!!