Solved

Restrict ability to edit a field

Posted on 2003-10-29
13
223 Views
Last Modified: 2013-12-18
I have several text fields on a form and I want to restrict who can edit the fields.  I want all users to be able to see the fields, but only database managers can edit the contents.

I see how to hide the field based on certain criteria, but that is not what I want.  Everybody has to be able to see the contents.

What is the best way to do this?

Thanks.
0
Comment
Question by:BECKETBM
[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
  • 4
  • 3
  • 3
  • +2
13 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9643145
Use Controlled Access section.

Include all the fields into the controlled access section and give the formula for the section as who can edit the document.

eg: "[MGRRole]"

Where MGRRole is enabled for the managers who can edit the document.

~Hemanth
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 9643613
All fields ?

Give all your users Author access to the database, and use an Authors field to further give (edit) access to certain users.
You can do that using a role.

So add a field, type Authors, computed when composed, with formula "[MGRRole]".

If you want to protect only a couple of fields, you have several options.

You can use the Access Controlled section like hemanth suggest, but you must be aware that that is by NO MEANS as safe solution.  Everybody with Author rights for the document, can still change the values (albeit not directly, but through agents, smart icons, ...).

Better (safer) alternatives include :
- create separate documents (eg. responses) to store the protected values, and show them in the parent document through  computed for display fields with @dblookup
- use the Field Security Options, must have Editor access to use.  This implies giving the managers Editor access to the database - they would be able to edit ALL documents they can see, so this maybe not what you want

cheers,

Tom
0
 

Author Comment

by:BECKETBM
ID: 9644248
Thanks for your suggestions everbody!

I have a follow-up.  I have tried using the controlled access section, which works fine, except that I can not seem to get the section to apply to more than one row in a table.  The table is used to align the various fields on the form; 2 columns, one for the label and one for the field and then 6 rows.

Can a controlled access section apply accros an entire table?

Thanks.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9644431
Yes, it can accomodate whole para or whole table
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 9644434
Put the table in the section, not the section in the table;
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9648360
What they both me is:
1) Select the entire table, from above the table to below the teble (add a few blank lines in both paces to make sure you get this right, you can select some of the extra blank lines)
2) WIth all of the tabel selected, Create -> Section -> COntrolled Access Section

Note: you can hide the "section header" for a more natural look.
0
 

Author Comment

by:BECKETBM
ID: 9694142
What if I just want the section to apply to a part of a table, just a few rows and columns?  I am only able to insert a controlled access section in each individual section.  When I aelect multiple rows or columns it does not seem possible to add a section.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9694314
You cannot do that. Rather you can select individual cells and enable controlled access section but that is too messy.. Can you split the table into two so that one has controlled edits and other doesn't ?
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 125 total points
ID: 9698408
No can do directly. But you can nest table (create one table inside anotehr), for a similar effect.
0
 

Author Comment

by:BECKETBM
ID: 9701424
qwaletee:

In one of your earlier replies you said it is possible to hide the section header for a more 'natural' look.  How do you do this?

I have removed the title text for the section but the space that is reserved for the title text is still there and it looks like there is an additional line in the table.

Also, when I enter the application as a user, I can still expand and collapse the section, thereby hiding the fields in the section.  I don't want the user to be able to do this.  I want the section always expanded.

Any ideas?

Thanks.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9701513
Goto property of section and select auto-expand for all choices and both editors and non-editors. THen goto hide tab at last and select all print/edit/read checkboxes.. so that section header is hidden and is always expanded.
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9709055
Hemantha's answer is what I meant, and solved both problems -- there is no appearance of a section,a nd the user can't collapse it.
0
 

Expert Comment

by:blossoming_flower
ID: 10288870
can anyone help....I have a section containing a table and it will not work via the web. Are sections actually compatible with the web. When the twisty is clicked, it expands (at least the expand graphic appears) but shows nothing.

Anthea
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
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…

691 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