Hello,
The following code is in OnAfterInsert on a form application. The sc_redir calls a tabs application that the form is part of.
When I have the sc_redir in place where it is, the sc_exec_sql never runs. Even though the sc_redir is after the sc_exec_sql.
Any idea why it would exhibit this behavior. My store procedure adds some records to the database. If the sc_redir is commented
out, all works as it should. If the sc_redir is there, the records never get added…Any help appreciated.
$check_sql =
“SELECT max(fin_date)
FROM fin_date WHERE cont_num = ‘[glo_cont_num]’
AND fin_date < ‘[glo_fin_date]’” ;
sc_lookup(rs, $check_sql);
if (isset({rs[0][0]}))
{
{olddate} = {rs[0][0]};
sc_exec_sql(“CALL get_prior_fs_detail([glo_cont_num],’{olddate}’,’{fin_date}’)”);
sc_redir(financial_tabs.php) ;
}
else
{
}