I create a Grid / Form application and it work fine when the access rights = ‘Admin’.
Now, I want to make use of the Form only when access rights = ‘User’.
First of all, when user login, I stored the login userid and access rights to global variable (eg. global_userid & global_rights).
With ‘Admin’ rights, I load the menu (menu4admin) with grid_user and link application to form_user, the value pass over is the userid. So, ‘Admin’ can view all users.
But when for user with ‘User’ rights only, I have a separate menu (menu4user) and load only the form_user. My question is: how I gonna pass the global_userid to the form? Where should I place the condition for ‘where userid = [global_userid]’? In this case, user only can view/edit his own data, not other user(s).
Regards,
CK