Custom Query: Paging and Sorting

I thought I saw this topic awhile back but can’t seem to find it.

How would one go about adding paging and column sorting to a custom query?

I am also interested in adding paging to custom query…

I suggest you to check the MySQL docs about LIMIT and OFFSET:

https://www.w3schools.com/php/php_mysql_select_limit.asp

There are plenty of resources in the internet explaining how to use them.

1 Like

Thought there might be a Wappler way to do it. I will investigate, thanks!

That’s the Wappler way :smiley:
It’s a custom query after all. Wappler doesn’t know what and how you are going to write it.

1 Like

The Wappler way is the paged query action, using the custom query action lets you implement your own way of paging. So start studying SQL :wink:

3 Likes

If using a custom query, and putting in offset and limit values with variables, Wappler doesn’t make those available like it does with a paged query, does it?