Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only