CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 restrict field views

Print topic Send  topic

Author Message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.