Usign version 9.7.021
sc_redir() in a blank application’s onExecute with a target of “modal” fails. However, combing it with an sc_alert() seems to trigger the correct result of the sc_redir(). So, for now, I’ve had to implement this as a work around, but a fix is in order. I’ve also tested using a target of “_self” and it works, so it appears the bug is isolated to the ‘modal’ option.
Here is the code that fails:
sc_redir(form_new_service_design, '', 'modal', 500,250);
Here is the code that works:
$params = array(
'title' => 'New Blueprint',
'type' => 'info',
'timer' => '2000',
'showConfirmButton' => false,
'position' => 'top',
'toast' => true
);
sc_alert("Create a new Service Design Blueprint ", $params);
sc_redir(form_new_service_design, '', 'modal', 500,250);