sc_set_global

Hi there

I have a question regarding sc_set_global marco.

In the web :

Note 1: A local variable can be a global variable if you use sc_set_global
$var3 = ‘testing’; // var3 is a local variable
sc_set_global($var3); // transforming var3 in a global variable
echo [var3] ." global variables"; // Now we can call [var3] in any other event

So, I put
$v_userid = {ds[0][2]};
$v_usertype = {user_type};
sc_set_global($v_userid);
sc_set_global($v_usertype);
into the onvalidation event.

but I don’t see $v_userid and $v_usertype in the application -> Global Variable.

The Global Variable is the variable being passed in the application, isn’t it?

thanks

Re: sc_set_global

see:

http://www.scriptcase.net/forum_en_us/index.php?topic=1723.msg5493#msg5493

Regards,
Scott.

Re: sc_set_global

hi

thanks for the reply. I can use the php method to pass the session variables. In fact, I am planning to do almost the same. Can I pass the session variables into the SQL settings in form application?

From the login application, I pass the user_id into a session and then pass the session into a form application(SQL settings). I only want to select the records where created = user_id. How can I do that?

Also, can I remove the edit and delete icons on the form application?

thanks again

Chun

Re: sc_set_global

In the toolbars you can select which button will appear in the app generated.