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?
view more than 10 records in a Child Table
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
-
- Moderator
- Posts: 82
- Joined: 2013-11-11 19:21
Re: view more than 10 records in a Child Table
You can do so by opening the generated parent-children.php file. Find and edit the line that reads
This line appears several times, one for each table.
Code: Select all
'records-per-page' => 10,
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
Re: view more than 10 records in a Child Table
Awesome! Thank you so much! worked like a charm!
-
- Posts: 16
- Joined: 2019-02-21 19:03
Re: view more than 10 records in a Child Table
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.
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
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
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
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
Re: view more than 10 records in a Child Table
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
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
Hi!
Any news about this post?
It will be veryeusefut to display ALL the child rows below parent detail view.
Thank you!
Fabiano
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
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<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 readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools