This topic is locked

returning to 'searched' list after editing record

11/14/2008 1:38:05 PM
PHPRunner General questions
Allenh author

After you do a search, you end up with a limited search result, then when you edit a record and 'save' - is there any way to save and return to the limited search result, as opposed to returning to all records?
I realize that you can do this in two steps, save, and then click the 'return to list' button - but clients want to do this in one step - is there code that can be added to 'after' record updated' and 'create new record'?
Thanks,

Allen.

B
bozzo 11/15/2008

After you do a search, you end up with a limited search result, then when you edit a record and 'save' - is there any way to save and return to the limited search result, as opposed to returning to all records?

I realize that you can do this in two steps, save, and then click the 'return to list' button - but clients want to do this in one step - is there code that can be added to 'after' record updated' and 'create new record'?
Thanks,

Allen.


A dirty way to do it is make a javascript "after record update"...something like history.go(-2)

Sergey Kornilov admin 11/15/2008

Allen,
use the following in AfterEdit event:

header("Location: tabelname_list.php?a=return");

exit();