Welcome Guest, Not a member yet? Register   Sign In
Pagination Problems
#11

Ok, the example code makes it clearer, thank you InsiteFX.

It would appear that we're talking about different aspects of the pagination functionality... displaying an array of material from the Controller is one thing, which clearly your example does, but this wasn't my problem... my headache was in generating the (raw) content of the data records to be displayed.

In my Model, a load of geographic data is recovered for each user request (there are many (perhaps two dozen) such geographic points associated with every one of potentially tens of thousands of database records recovered in each query). The data needed to be processed and filtered according to the user's selections (each involving many calculations done on each of these individual geographic points- for example to adjust for the curvature of the earth- and which also use data recovered in sub-queries from other database tables).

Many of the recovered records from my database are thrown out in the filtering process (based on selections made by users) and the ones that remain are no longer the raw database record- I essentially end up with an array of related, but totally different data that then needed to be displayed in a paged format.

Dreaming up a query that could have been used to pull the data from the database and do all the required processing on each of the points in each of the required records and then throw out the ones that don’t match the criteria after the processing (the stage shown in your example’s Model code) in such a manner that it could be used in a chained query looked like a pretty tall order to me (perhaps impossible ?)... which is why I was trying to display and paginate an array of (custom) data.
Reply


Messages In This Thread
Pagination Problems - by Gary - 09-29-2020, 11:36 AM
RE: Pagination Problems - by InsiteFX - 09-29-2020, 03:56 PM
RE: Pagination Problems - by nc03061981 - 09-29-2020, 05:33 PM
RE: Pagination Problems - by InsiteFX - 09-29-2020, 05:36 PM
RE: Pagination Problems - by nc03061981 - 09-29-2020, 05:40 PM
RE: Pagination Problems - by Gary - 09-30-2020, 04:24 AM
RE: Pagination Problems - by nc03061981 - 09-30-2020, 06:13 PM
RE: Pagination Problems - by Gary - 10-01-2020, 04:01 PM
RE: Pagination Problems - by InsiteFX - 10-01-2020, 04:53 PM
RE: Pagination Problems - by nc03061981 - 10-01-2020, 05:40 PM
RE: Pagination Problems - by Gary - 10-02-2020, 02:45 AM
RE: Pagination Problems - by heriniaina - 06-12-2022, 08:44 AM
RE: Pagination Problems - by Gary - 06-23-2022, 09:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB