CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Suggestion: Hide fields depending on security

Print topic Send  topic

Author Message
Brent
Posted: 01/28/2002, 3:22 PM

I would like to see each field property (form & grids) have a security level
field that would prevent the user from seeing or editing the field if their
security clearance is not high enough.

Name: Employee_Salary
Visible Security Level: 2
Edit Security Level: 3

What this means is, for the Employee_Salary field, only users with a security
level of 2 or more will see the field otherwise the field is invisible (not shown
on the form/grid). If the user has security level 3, then they can edit the field. So
the field shows up as a text box with security level>=3, and a label if
security level=2, and invisible otherwise.

If the develper doesn't want this field to have any special security handling,
then it defaults to -1.

What do you think?
Nicole
Posted: 01/29/2002, 2:12 AM

Brent,
refer to new posted article at: http://www.gotocode.com/art.asp?art_id=129&
Change the condition in sample code.
Brent
Posted: 01/29/2002, 2:21 PM

Nicole,
Thanks for pointing that out.

>>As you know non updateable fields like Label or URL
aren't included into generated SQL statement. So in
addition create Custom Action event and modify SQL
query for insert action in order to include mentioned
field into it.<<

It may be ok to try this for one or two fields, but it is not practical for
a large number of forms or grids. The intelligence needs to be put into the
CC templates. It would be sooo much easier if a couple of check boxes controlled
whether the field is visible or editable depending on the security level.
kmc
Posted: 01/30/2002, 12:59 PM

I agree with Brent, it's something I've hoped for in a release someday.The checkbox would be great linked to a security level.

Also a checkbox in field properties to allow/disallow field sort in a grid would be useful.

   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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