14 Jun 2018 13:10:36 Bruce Wilkie posted:
I'm wanting to change the offset of a paged query when the page loads.
Eventually I'm wanting to set it to the value contained in the querystring, but for now I just want to change it to a fixed value.
I can do it with a link on the page as follows:
This moves the results I'm showing onto the second page, since I have set a limit of 10 in the Server Connect Prperties box.
What I want to do is to move to the second page as soon as it loads.
I've tried using onload and ready in the body tag as follows:
(I can't show you the full body tag with the above included since this form is blocking me from typing code again)
But neither of those has the desired effect.
I suspect you're going to ask why I want to do this, so I'll say now.
I've got a Details page, filtered by url parameter that I link to from this page, and I'm wanting to put a back button in that will return me to this page with the correct offset. Rather than returning me to the first page. I've already passed the offset to the details page using another url parameter, and I'm passing it back to this page using that same url parameter.
So, all I need to do is set the offset upon arriving back at this page.
Firstly I want to do it with the fixed value in my example above (10), and then I'll go to the next step and do it with the url parameter.
Hope you can help