Page 1 of 1

view more than 10 records in a Child Table

Posted: 2016-10-03 20:38
by nycwebmaster
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?

Re: view more than 10 records in a Child Table

Posted: 2016-10-05 11:54
by Noha Eshra
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.

Re: view more than 10 records in a Child Table

Posted: 2016-10-06 20:22
by nycwebmaster
Awesome! Thank you so much! worked like a charm!

Re: view more than 10 records in a Child Table

Posted: 2019-02-25 12:28
by jlarmarange
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.

Re: view more than 10 records in a Child Table

Posted: 2019-02-25 17:15
by sjohn
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

Re: view more than 10 records in a Child Table

Posted: 2019-02-25 21:25
by nycwebmaster
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.

Re: view more than 10 records in a Child Table

Posted: 2019-02-26 09:01
by sjohn
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.

Re: view more than 10 records in a Child Table

Posted: 2019-05-23 19:55
by fgazza
Hi!
Any news about this post?
It will be veryeusefut to display ALL the child rows below parent detail view.
Thank you!
Fabiano

Re: view more than 10 records in a Child Table

Posted: 2022-09-04 13:38
by jsetzer