Page 1 of 1

After save in grid edit load to the next page

Posted: Thu Jun 23, 2022 6:59 pm
by sapaypape80

Hello!
I have a table with to much records and pages. Actually when we edit in "grid edit" and save it loads the first page of pagination. Could we configure to load the same page or the next page?


Re: After save in grid edit load to the next page

Posted: Thu Jun 23, 2022 7:32 pm
by arbei

You can set the page number in the URL of the Return Page.


Re: After save in grid edit load to the next page

Posted: Thu Jun 23, 2022 10:47 pm
by sapaypape80

Yes i saw that, but could you tell me how has to be the code to put there? For example to open the next page in grid edit?
Thanks in advance XD


Re: After save in grid edit load to the next page

Posted: Thu Jun 23, 2022 11:19 pm
by arbei

You need to calculate the next page number (e.g. current page + 1) and use it in the return page URL. The current page number can be obtained from the URL when you enter the Grid-Edit mode.


Re: After save in grid edit load to the next page

Posted: Mon Jun 27, 2022 7:46 pm
by sapaypape80

Hi, I am trying to calculate the page number, but I don't know which parameter to use. I only see the "start" parameter at URL and I have tried the following:

"entradapujalist.php?action=gridedit&showmaster=subastas&fk_codsubasta=".urlencode($this->codsubasta->CurrentValue)."start=".((isset($GET['start']) ? $GET['start'] + 10 : 11))

Please, ¿can you provide me an example?


Re: After save in grid edit load to the next page

Posted: Mon Jun 27, 2022 11:05 pm
by arbei

Be reminded that URL paramters should be separated by "&", there is none before "start" in your URL. You may learn also $_GET.


Re: After save in grid edit load to the next page

Posted: Thu Sep 29, 2022 7:36 pm
by sapaypape80

Thanks that was solved


Re: After save in grid edit load to the next page

Posted: Tue Oct 04, 2022 2:54 am
by SOHIB

sapaypape80 wrote:

Thanks that was solved

please write the solutions , i need to use it also