can we decide (or conditional) the return page ?

hi,

i’d like to “conditionalize” a return page.
is it possible ?

i search in phpmaker interface, but we can only enter a fixe table in basic event (after add, after edit, …etc)
what if my returning page depend of an edit field value ? i tried to perform such beautiful process (kind of workflow in ERP).

i saw there is the event function Page_Redirecting but the parameter does not contain ($rsold, &$rsnew) which i need to perfor my test.

if would be good to have the feature to do :

$my_condition=$rsold[“myfield”]==“no” && $rsnew[“myfield”]==“yes”;
if ($my_condition)
Page_Redirecting (“www_somewhere”);
else
Page_Redirecting (“www_somewhere_else”);

is it possible in some way ?

The setting is only a PHP expression, you may use, e.g.

($my_condition) ? “www_somewhere” : “www_somewhere_else”

You may simply use “Row_Inserted” and/or “Row_Updated” server events to redirect to another page/url after Add and/or Edit a record, for example:

$this->terminate(“mypage.php”);

In those events, you may include the value of the field(s) from $rsnew and/or $rsold.