view more than 10 records in a Child Table

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

view more than 10 records in a Child Table

Post by nycwebmaster » 2016-10-03 20:38

Hi,

I have an event table that has several Child Tables. The problem is when I have more than 10 records on the child table that the child table only shows up to 10 records and then create a pagination effect. I want to be able to see more than 10 record at a time. How do I accomplish this?

Noha Eshra
Moderator
Posts: 82
Joined: 2013-11-11 19:21

Re: view more than 10 records in a Child Table

Post by Noha Eshra » 2016-10-05 11:54

You can do so by opening the generated parent-children.php file. Find and edit the line that reads

Code: Select all

'records-per-page' => 10,
This line appears several times, one for each table.

nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

Re: view more than 10 records in a Child Table

Post by nycwebmaster » 2016-10-06 20:22

Awesome! Thank you so much! worked like a charm!

jlarmarange
Posts: 16
Joined: 2019-02-21 19:03

Re: view more than 10 records in a Child Table

Post by jlarmarange » 2019-02-25 12:28

Such customisation will be overwritten when the app is regenerated by AppGini.

It would be better to be able to customise it directly within AppGini or through a specific hook.

sjohn
Veteran Member
Posts: 86
Joined: 2018-05-23 09:32

Re: view more than 10 records in a Child Table

Post by sjohn » 2019-02-25 17:15

Hello nycwebmaster

You could use the amazing piece of code displayed by pböttcher
https://forums.appgini.com/phpbb/viewto ... 8401#p8401

It is made in the hook's and will not be overwritten.

This code is really useful. It still initially show 10 records. but if you set the records to 50 then you will initially see 10 records ( depending on your settings in the code ) but you will now be able to scroll in the 50 records before you "page" to the next 50.
You can see an example here : http://eksempelsite.dk/firmaer/Firmaer_view.php

nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

Re: view more than 10 records in a Child Table

Post by nycwebmaster » 2019-02-25 21:25

Thank you for the hint is actually super cool but this only works when you look it on the table view, my original question was when you see the record in detail view and you are looking at the children table that only shows by default 10 records only. But anyways is a super good tip when you are looking the table in a table view.

sjohn
Veteran Member
Posts: 86
Joined: 2018-05-23 09:32

Re: view more than 10 records in a Child Table

Post by sjohn » 2019-02-26 09:01

I thought that setting the records per page would also affect the setting for the child table - but apparently not. It is maybe hardcoded and prepared for a setting option in a future release.

fgazza
Veteran Member
Posts: 205
Joined: 2019-04-30 17:37

Re: view more than 10 records in a Child Table

Post by fgazza » 2019-05-23 19:55

Hi!
Any news about this post?
It will be veryeusefut to display ALL the child rows below parent detail view.
Thank you!
Fabiano

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: view more than 10 records in a Child Table

Post by jsetzer » 2022-09-04 13:38

Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply