Solved

Field Access Restriction

Posted on 2000-02-29
5
204 Views
Last Modified: 2013-12-18
Hi Experts,

how do I restrict the access to a specified field by roles ?

Hope you can help me

Thanks Tom
0
Comment
Question by:woodlott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:Paebdb
ID: 2568751
Two possibilities:
- hide the field depending on a role
- put the field in a section, there you can control read-write access according to roles
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 2571326
Hi,

Hiding a Field is not a true security to my knowledge.  But to some extent.
Hope paebdb agrees to this.

And make sure that the section you create is a Controlled Section.

-Arun
0
 

Author Comment

by:woodlott
ID: 2571718
Hi,

my problem is, it is a web-application and so I can't use sections. The next problem I have, the field must be shown for the read access.
0
 
LVL 6

Accepted Solution

by:
ghassan99 earned 5 total points
ID: 2573644
Use something like this in the 'hide when true' formula of the field:
@IsNotMember("[role_name]";@UserRoles)
or
@IsMember("[role_name]";@UserRoles)

If the user has (or hasnt) a certain role the field will just be hidden.

-Gus
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 2575959
Hi woodlott,

I will go for ghassan's way of approach.
Keep a computed and an editable in two lines one after the other.

Using the roles, hide one line at a time and show the other.  

When the computed field shows up you are in read mode.

When the editable field show up you are in edit mode.

One of my colleague got a same approach and worked perfectly !

Good Luck !

-Arun
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question