always print children records

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

always print children records

Post by tuxor » 2016-02-17 18:18

Hi, I have various parent/child tables, and I like to show the detail view when users print the parent child. How can enable all the children detail view for all the parent tables? And hide the button to show the cihldren records.

Thanks

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: always print children records

Post by a.gneady » 2016-02-17 21:58

The button to show children records is viewable only on the screen but doesn't get printed. We'll add an option in the next release (due very soon) to enable all children by default without having to click each child's button.
:idea: AppGini plugins to add more power to your apps:

tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

Re: always print children records

Post by tuxor » 2016-02-17 22:13

ok, so there is not a code to insert to enable print in all children tables? When is going to release the next version?
Thanks.

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: always print children records

Post by a.gneady » 2016-02-18 22:15

OK, try this code in hooks/footer-extras.php:

Code: Select all

<script>
    $j(function(){
        $j('#children-tabs.hidden-print .btn').click();
    })
</script>
:idea: AppGini plugins to add more power to your apps:

tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

Re: always print children records

Post by tuxor » 2016-03-09 03:43

Hi, I've tested the code but doesn't works. Any idea?

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: always print children records

Post by AhmedBR » 2022-10-24 11:11

a.gneady wrote:
2016-02-17 21:58
we'll add an option in the next release (due very soon) to enable all children by default without having to click each child's button.
Hi,

Was this option added? if yes, where?
(the above code does not work 22.14)

Thanks
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: always print children records

Post by AhmedBR » 2022-10-24 11:43

For a quick solution, added this to the file: table_template.DVP.html

Code: Select all

<script>
 setTimeout(function(){
     // toggle back after 1 second
   $j('#children-tabs button').click(); 
   },500);
</script>
It is a custom print template page, it is not going to be overwritten.
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

Post Reply