Theunis
|
| Posted: 08/18/2005, 6:47 PM |
|
I understand that controls can be restricted according to access levels, but would it be possible to restrict the view of certain fields within a grid? e.g. normal users can see employee details but an extra field e.g. salary can only be viewed by supervisors in the grid?
Thanks
Theunis
|
|
|
 |
Edd
Posts: 547
|
| Posted: 08/20/2005, 9:10 PM |
|
You do this by applying your own security on the field in the beforeRow or beforeShow event tand blacking the field manually.
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
Theunis
|
| Posted: 08/23/2005, 11:41 AM |
|
Edd, I got a method to get the security level - any pointers on how to set the a lable then 'invisible' if the security level is not what it is supposed to be?
|
|
|
 |
smalloy
Posts: 107
|
| Posted: 08/23/2005, 1:05 PM |
|
You can do this by either the individual users ID or the groupID. So the code would be:
Dim intGroup
intGroup = CCGetGroupID()
Select Case intGroup
Case 1,3,5
form.label.Visible = False
Case Else
form.label.Visible = True
End Select
Put this in either the Before Show or Before Show Row as Edd suggested!
_________________
Anything can be done, just give me time and money. |
 |
 |
|