AnsweredAssumed Answered

How to redirect into same page in before_save logic hook file

Question asked by Sumit Sahay on Aug 1, 2015
Latest reply on Oct 16, 2018 by Simon Pountney-Langham
Hi,

How to redirect into the editview page of the module, in before_save logic hook file.
I did the below,

$queryParams = array(
    'module' => 'mycustommodule',
    'action' => 'EditView',   
);
SugarApplication::redirect('index.php?' . http_build_query($queryParams));           
        }
It is working fine, I am redirecting into the editview page, but it is harming the listview, when I click the module from the menu it is redirecting into the editview and not into the listview, so I m unable to see listview.

How do I redirect the page? and without harming list view.


Thanks & Regards
Sumit Sahay
sumit143sweta@gmail.com
skypeId - sahay786

Outcomes