Re: Passing variables

Originally Posted by
chrislynch8
One last thing, seeing as other people problems are easier to solve.
With Javascript in the view.detail.php how can I redirect the user to the edit view of the record they have just come from?
Rgds
Chris
If I want to do a redirect I do it in the before save rather than saving & going to detailview
something like
if ( empty($_REQUEST['record']) ) {
SugarApplication::redirect("index.php?module=zz_pb k_cat&return_module=zz_pbk_cat&action=EditView");
} else {
SugarApplication::redirect("index.php?module=zz_pb k_cat&return_module=zz_pbk_cat&action=EditView&rec ord=" . $_REQUEST['record']);
}
And now I'm off home
Mike Solomon
Development Manager
Ivy Ltd
www.ivy.ltd.uk]www.ivy.ltd.uk
php version 5.2.6
MySql 5.1.59
Bookmarks