Hi friends!
I am designing a scheduling system with 3 types of users:
-an administrator (who can view all fields)
-teachers (who sees all his/her subordinates)
-students
- administrators assign students to teachers
- teachers use database to create their schedule
****Databases****
-------------
users: userid,fname,lname,usertype
schedule: date,block,classid,userid
classes: classid,description
****Objective:*****
I want to set a variable to the teacher who is currently logged in, so that when a teacher creates a new class,his/her userid is automatically entered into the userid field of the schedule
****Question:*****
If I set a global variable to the current userid, an another user logs in via a second Servoy Client and enters his/her id, 1) will the first userid in the global variable change? or is a different instance of the global variable used and the first userid data retained?
2)How can I keep the userid from changing?
3)Does servoy have session variables?