Previous and next buttons in the grid , query by date

Hi everyone,

I am trying to put ‘Previous’ and ‘Next’ button in the grid where the grid shows the record by date.

For example:

Initially, when the grid opens/is opened, the record where datefield = CURDATE() is shown,

and when next is pressed, the grid shows the record curdate() + 1 and so on…

is it possible? some other way to do it…

If anyone has any idea or solution then i would appreciate it a lot.

Thanks!

Re: Previous and next buttons in the grid , query by date

This could be a bit tricky. You are wanting to put client buttons to change data retrieved from the server and then save it back to the server on inc/dec per record?

You could create a new image field for each and have the link perform the action updating the server and then use JS to update the row/field in the client grid to avoid refreshing each time.

Regards,
Scott.

Re: Previous and next buttons in the grid , query by date

Thanks for your suggestion.

:slight_smile: