After save return Listview not detailview

whenever I edit my opportunity module and save by default it returns Detail view.But I want it to return in listview .How can I do this .Can any one suggest me whether there is any after save logic hook.

Google for posts explaining how to use

SugarApplication::redirect

in an after_save logic hook.

Include in your search anything related to SugarCRM up to version 6.5, and you will find.

1 Like

Thank you sir .But there is a small change when ever I edit and save each module it should redirect to listview. I tried little mention in the logic hook document.
I created a global logic hook file in custom/ module then i have added an after save logic hook in /custom/modules/logic_hooks.php

$hook_array['after_save'][] = Array(2, 'list_view_redirect', 'custom/modules/ListViewRedirect.php','RD_LogicHooks', 'onSaveModule');

then i don’t know how to redirect for each module.guide me .I am new to suitecrm.

I don’t know exact instructions to give you, you’ll have to find out yourself.

First, try to make sure that your logic hook is being called. Once you are sure that part is working, try to make redirect.