Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Biju Thomas
  Where is Biju Thomas?
 Kochi
 India
 Biju Thomas
 To: Prasant T
  Where is Prasant T?
 Thrissur, Kerala
 India
 Prasant T
 Tags
Subject: RE: Deny Access in some Menu items
Thread ID: 200698 Message ID: 206095 # Views: 33 # Ratings: 0
Version: Visual FoxPro 9 Category: Menus
Date: Wednesday, December 03, 2008 4:38:27 AM         
   


> Hi,
>
> I have developed a Menu using create menu. It is working fine. I want to block some users from accessing some items of menu.
>
> for example:
>
> Main Menu
> .....Pay Roll
> ..........Employee Master
> ..........Salary Preparation
> ..........Bonus Calculation
> ..........Attendance Entry
> ..........------------------
> ------
>
> There are two users. Admin & User. I want to block Bonus calculation to User. Is there any way? How I can use SKIP FOR in this condition?
>
>
> Prasant




_Screen.AddProperty("Login_Group","")
_Screen.Login_Group = ‘Admin’ && track the login group in your program

In the Menu Designer -> Prompt Options -> Skip For
_Screen.LoginGroup <> "Admin"
Save, Generate and run.
Instead of using all those login screens, encryption of passwords, you can use Windows own security means Windows User Accounts. Then give Form wise access for Adding, Editing, Printing, Deleting, Emailing etc.
With Reagrds,
Biju Thomas







COMPLETE THREAD
Deny Access in some Menu items Posted by Prasant T @ 10/29/2008 1:49:34 PM
RE: Deny Access in some Menu items Posted by surinder singh @ 10/29/2008 1:52:52 PM
RE: Deny Access in some Menu items Posted by tushar @ 10/29/2008 1:54:31 PM
RE: Deny Access in some Menu items Posted by Benny Thomas @ 10/31/2008 10:04:30 AM
RE: Deny Access in some Menu items Posted by tushar @ 10/31/2008 11:41:06 AM
RE: Deny Access in some Menu items Posted by Yousfi Benameur @ 10/29/2008 2:09:58 PM
RE: Deny Access in some Menu items Posted by Jun Tangunan @ 10/30/2008 7:13:05 AM
RE: Deny Access in some Menu items Posted by Rafael Escambion @ 10/30/2008 7:47:23 AM
RE: Deny Access in some Menu items Posted by Stefan Wuebbe @ 10/30/2008 6:41:11 PM
RE: Deny Access in some Menu items Posted by Glenn Villar @ 10/31/2008 2:03:23 AM
RE: Deny Access in some Menu items Posted by Stefan Wuebbe @ 10/31/2008 8:54:37 AM
RE: Deny Access in some Menu items Posted by Marcia Akins @ 11/1/2008 12:40:31 PM
RE: Deny Access in some Menu items Posted by Prasant T @ 11/3/2008 8:21:35 AM
RE: Deny Access in some Menu items Posted by Biju Thomas @ 12/3/2008 4:38:27 AM