[SOLVED] sc_ajax_message

Hello, i have set an ajax event onclick on a field in a form
in the event i have set:

sc_ajax_message(“Message”, “Title”, “modal=Y&button=Y&button_label=GO&width=420&re dir= app_to_call.php&redir_target=_blank”, “idpatient={idpatient};iddisease={iddisease}”) ;

the event fires and i am redirected on the appilcation app_to_call.php as specified but redirecting parameters are not passed, because i end up not at the specific record of the target application.

Am i writing a bad syntax? Thanks

Did you tried with params outside double quotes?

sc_ajax_message("Message", "Title", "modal=Y&button=Y&button_label=GO&width=420&re dir= app_to_call.php&redir_target=_blank", idpatient={idpatient};iddisease={iddisease}) ;

As a matter of fact no… I will try ASAP.
Thanks

No. Does not work. without quotes the application crashes as soon as i generate it

iddisease on target app is a field not a global var
also idpatient. I hve not set gloal var on target app. Should i?

Yes, Passign values to fields directly by URL is only accepted by PK AFAIR. You can set your field with initial value for iddisease to [glo_iddisease] and on your redirection with params do
glo_iddisease={iddisease};

It works…

Thank you very much.
i have learned something new.

Closed as solved