Forum OpenACS Development: ad_table and paginate

Collapse
Posted by Jon Griffin on
Has anyone worked on an integreated ad_table and paginator?

You can't use the two together so before I start creating this, I figured I would ask.
The requirements would be, ad_table with pagination built in and set up as a widget to use with ad_form et al.

Collapse
2: Re: ad_table and paginate (response to 1)
Posted by Jon Griffin on
Many thanks to Brad Duell for working this out. He fixed paginator procs and added to it, and then figured out how to make it work with ad_table.

http://jongriffin.com/static/openacs/ad_table/ explains its use.

Note, you must use the patch as I haven't commited this to head yet (pending some more testing).

Collapse
3: Re: ad_table and paginate (response to 1)
Posted by Hazi Gharagozlou on
Jon,

The link is broken

Collapse
4: Re: ad_table and paginate (response to 1)
Posted by Jon Griffin on
Sorry, forgot to move it.
It is fixed now.
One caveat. It has problems with column sorts. It only sorts the current page. That is a fundemental problem with paginate.

I have written a new version from scratch that I am using in production, it just needs to add a few missing features and I will upload it to contrib/

Collapse
5: Re: ad_table and paginate (response to 1)
Posted by Hazi Gharagozlou on
Jon,

The posted code breaks on the following line. I searched the api and I can't find get_query. Am I Missing something?

paginator::get_query sample creation_date 1