Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling user's access to field level...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00852741
Message ID:
00852743
Vues:
8
Chris,

You could create a security table that held security levels for edit and read for each of your secire fields. Then put a method in your frmSecure form class that looks up the ControlSource for each control in the security table. Depending on the current users security level you can set the .Visible = .f. to hide the control from the user, set the .Enabled = .f. to prevent them from editting. If you call this method from the Form.Init() it'll happen before the user sees the form.

>Hi All - I am about to start a new project where the customer needs a high level of control regarding what users see and can edit. For instance - I may have 30 textboxes (or other controls) on a form and for any one user I may need to...
>
>a) not display the data in one or more controls
>b) display data but prevent the user from editing it
>
>This will vary from user to user...
>
>Any advice on how to code this sort of thing? What techniques to use?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform