[SOLVED] Â Limit rows that a user can retrieve in a List Page |
7/20/2020 5:41:14 PM |
PHPRunner General questions | |
A
asawyer13 authorDevClub member
I allow the user to enter search criteria in a List page, but even if their search is going to retrieve 100 rows, I only want the user to see 10 rows. Doesn't really matter what 10 rows, but I want to limit them. |
|
![]() |
fhumanes 7/26/2020 |
Hello: |
A
|
asawyer13 authorDevClub member 7/26/2020 |
Hello: In Mysql there is the "limit <number of rows>" clause that you want to retrieve. For example "limit 10" Greetings, Fernando
|
![]() |
mbintex 7/27/2020 |
Look here: |
A
|
asawyer13 authorDevClub member 7/27/2020 |
Look here: https://xlinesoft.com/phprunner/docs/query_designer.htm Search for "Limit data to first "N" rows"
|
![]() |
fhumanes 7/27/2020 |
In a list page I don't think I have access to the actual sql statement that's being executed to be able to add the limit clause. I ended up using a temporary table and in the Before Process event load the temp table by creating my own sql statement and then having the list page use that temporary table. It is working well.
|