Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read only rights for some users and all rights for other
Message
From
29/05/2001 08:08:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
29/05/2001 06:26:45
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, South Africa
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00512120
Message ID:
00512141
Views:
12
>Hi All
>
>Can anyone please help with this..
>
>I would like some users, when they log on to the system to have view only rights while others must have all rights.
>
>How do i do this when using a wizard generated form.
>
>I do have a place where the person can create his logon name and password and the same form has the option to allow or deny access into the forms.
>The question is , i would like the user to have access to the form but for VIEW ONLY rights.
>
>Thanks in Advance
>Fida

Fida,

There are many (many) ways to do this and others will let you know what they are. I have used successfully the concept of creating a form property called cFormMode which contains a character string of a space " " or "R" for ReadOnly. This value can be set depending on the user access in the Init of the form. You can then put logic in the refresh for objects to either be available or not available depending on the cFormMode value. If you use classes (I sense that you don't though) it makes the much easier to handle as you do not have to write refresh code for every object on the screen; just the class. I also use this for setting whether objects (like buttons) are enabled or not depending on this value. For example, if the cFormMode property value is "E" (means that we are in an "Edit" mode) then only the "Save" and "Cancel" buttons are enabled. Hope this helps...

Regards, Renoir
Previous
Reply
Map
View

Click here to load this message in the networking platform