Hello experts, i face a trouble to link a control form to another control.
The problem is that in my case the first parameter of sc_redir macro is not a constant but a var coming from a table.
With this sql, i get the name off the app.
$sql=“select app from tests where idtests=”.{test};
sc_lookup(Dataset,$sql);
$test={Dataset}[0][0];
If i code this
sc_redir($test,IDFICHIERS_AVOIR=$id);
The link produce is :
The requested URL /scriptcase/app/fec/1/1.php was not found on this server.
If a code this, it is correct :
if ($test==“control2”)
sc_redir(control2,IDFICHIERS_AVOIR=$id);
then if I code :
sc_redir($test,IDFICHIERS_AVOIR=$id); FAILED !!
So, it seems that in case of internal app redir, the first parameter is only a constant.
Have you alredy seen this kind of case ? Have you succeed to find a workaround ?