Undefinied variable at open form

I have a form that show the next message:
‘Notice: Undefined variable: nmgp_url_saida in C:Archivos de programaNetMakev5wwwrootscriptcaseappPrincipalFormulario_decretosFormulario_decretos.php on line 1101’
The form run correct, but i need clear this message.
I dont know what changed when start to appear the message.

Any idea that happend???

Regards

Re: Undefinied variable at open form

Please report this line …

Re: Undefinied variable at open form

Do you have any global variable declared ? or do you use any event in your app?

Re: Undefinied variable at open form

Hello,
Yes, i have a global variable (session - input) that asign to a field hide in form (name of user).
The form only have insert option, and have 2 event, onBeforeInsert and onAfterInsert, but in this i dont use the global variable.

The code is:
if (isset($nmgp_outra_jan) && $nmgp_outra_jan == ‘true’)
{
1101==>> if ($nmgp_url_saida == “modal”)
{
$_SESSION[‘sc_session’][$script_case_init][‘Formulario_decretos’][‘sc_modal’] = true;
$nm_url_saida = “Formulario_decretos_fim.php”;
}
$nm_apl_dependente = 0;
$_SESSION[‘sc_session’][$script_case_init][‘Formulario_decretos’][‘sc_outra_jan’] = true;
}

Thanks in advantage

Re: Undefinied variable at open form

More things,
i call the form from a menu. If in the menu, i open the form in the same window, the message not appear.
Instead, if i open the form in other window, then appear the message…
I think that the problem come of the menu…
Any ideas???

Regards

Re: Undefinied variable at open form

Just to know … are you using the last version of scriptcase?

Re: Undefinied variable at open form

Yes, my version is 5.1.018.