Disabling (greying-out) options on Lotus form
85 pts.
0
Q:
Disabling (greying-out) options on Lotus form
I have created a notes (.nsf) database which is having certain checkboxes and text feilds on a form. These fields are editable. Is there any way to disabled(greyed out ) whole form so that no one can change these fileds at certain point. Is there any function to do that whether in lotus-script or formula language. Please help!!!!!!!!

--Ashoo
ASKED: Apr 30 2009  8:18 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
1610 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Maybe you sould work with Author field, wich can manage who has the rightd to go in editmode...

You could work with @Command( [EditDocument] ; "1") to put the document in modification mode or @Command( [EditDocument] ; "0") to make it display only.
Last Answered: Apr 30 2009  1:35 PM GMT by BruceWayne   1610 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Brooklynegg   2685 pts.  |   Apr 30 2009  3:19PM GMT

BruceWayne’s response is correct (as usual) for controlling the entire form based on an Author field and the proper settings in the ACL. If you want to control one field at a time, you can use the field’s Input Enabled event. There are some restrictions on this, so you will have to read about it in help. With this event, even if someone has edit access to the document, the form will prevent them from edting specific fields.

 

Rita   55 pts.  |   Apr 30 2009  5:32PM GMT

Another way would be to create a Computed Section and place the whole document and/or certain fields within the section, make it editable with an author field and Administrators group. Once the document is created and saved, you could then repopulate that field with just a specific group you would allow to modify the document within a computed field.

 

Ledlincoln   1220 pts.  |   Apr 30 2009  6:55PM GMT

Yet another way is to set up one form with editable fields and a different form with only computed fields. The Notes client can then be set up to select the appropriate form for the user.

 

Mrainer   115 pts.  |   May 1 2009  10:55AM GMT

You can use an entry field and a display field. Like this: ClientName and DisplayClientName.

DispalyClientName inherits from ClientName. So the user cannot edit here. The user must edit ClientName.

Then at the point in your workflow that you want to disallow editing, you hide ClientName so that the user can only see DisplayClientName, which he cannot edit.

You use a hidden field to turn off displaying ClientName and turn on displaying DisplayClientName.

The answers above will control the entire form or a section of a form. My method will allow you to control field by field.

 

Brooklynegg   2685 pts.  |   May 1 2009  1:34PM GMT

Mrainer: Your response, although it would work, is the ‘old way’ to do it. The Input Enabled event of a field controls the field, not the whole form or a section and is the preferred way to control edit access to a field.

 

Mrainer   115 pts.  |   May 2 2009  3:36AM GMT

Brooklynegg: You are right.

However, using Input Enabled event has a few problems. At least in certain versions. In particular, doesn’t work on the web (at least in 7) and doesn’t work with richtext fields.

Maybe this has been fixed in 8.

 

Ashneet   85 pts.  |   May 3 2009  4:04PM GMT

Hey All,

Thanks a lot for your answers. I will try to do the same :-)

–Ashoo

 
0