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

 Permissions on URL fields

Print topic Send  topic

Author Message
Newbie
Posted: 04/01/2002, 10:17 AM

How do I hide a url field based on their permission level? I have a page that the user can edit data from a grid by selecting the edit url and I want them have it based only on their permission level of 3 or higher! Any ideas?

Newbie
Nicole
Posted: 04/01/2002, 11:51 PM

Hello,
the workaround is to use custom url links. Add Label type field instead url and select 'HTML' flag in its properties. Then in Before Show event check logged in user rights value and depending on it assign empty value to Label field or html code need to create url link.
Newbie
Posted: 04/02/2002, 8:22 AM

What would the code be to check someones rights for the before show?
Nicole
Posted: 04/03/2002, 12:00 AM

Hello,
check the value of session variable UserRights. The exact code depends on programming language you use.
Newbie
Posted: 04/06/2002, 12:07 PM

I am using asp w/ templates. Does that help to tell you how to help me with the code?
Newbie to all code
Nicole
Posted: 04/08/2002, 4:52 AM

Hello,
try code like:
if Session(UserRights) = 3 then
fldField1 = "<a href = ""AnyPage.asp"">Go to...</a>"
else
fldField1 = ""
end id

   


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.