Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read only rights for some users and all rights for other
Message
De
29/05/2001 08:08:23
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
29/05/2001 06:26:45
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00512120
Message ID:
00512141
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform