Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a forms data ReadOnly
Message
From
09/05/1997 16:47:44
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00031581
Message ID:
00031592
Views:
40
>>>I have a form that I would like to make the data readonly for one particular user. I would like to pass
>>>a parameter to the form from a menu like
>>>"DO FORM myForm WITH .T." and set the cursors in the
>>>dataenvironment ReadOnly Property to .T. any Ideas as
>>>where to put this kind of parm. or Is there a better way?
>>>
>>>Thanks
>>>Jon Wilshusen
>>
>>You can put that snippet in a Stored Procedure under the database. Then
>>have your Insert, Update and Delete triggers check for a user-authority reference in another table to see if that person has rights. That will allow for growth into a true security module, instead of: "OK, except for Jane!"
>
>I could give this a whirl, Now remember I haven't been programming very long, But I am starting to enjoy it.

It seems tough but it's not. Check out the TasTrader example for a quick start.
One thing to remember is that all the stored procedures for a database will end up in a single place even though you have separate listings under the Stored Procedures heading. When you get more than one in there, open it back up and you'll see what I mean.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform