Solved

How can I lock down fields when a button is clicked from a Lotus Notes document?

Posted on 2010-09-21
3
331 Views
Last Modified: 2013-12-18
I have a Lotus Notes document that has many editable fields. When a buttom is clicked, is there a way that I can make some of the fields locked(not editable) any more? Is there some function like setFieldNotEditable in Lotusscripts or Formula? Or any other ideas will be appreciated.  
0
Comment
Question by:dominoPgr
[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
3 Comments
 
LVL 17

Accepted Solution

by:
fgrushevsky earned 250 total points
ID: 33729837
IMHO, the easiest way to do it to have two fields for each field that you want to lock, for example Field1 and Field1_R
Field1 would be your editable field
Field1_R would be computed for display (i.e. read only) field with the formula Field1

When user clicks on the button, the button would set a flag , i.e. some hidden field. You will use this flag field in the "hide when formula is true" formula to hide FIELD1 and display FIELD1_R instead.

this is how it works:
user opened a document
Flag_Field="0"  (default value)

FIELD1 is visible (hide when formula is ... Flag_Field="1")
FIELD1_R is not visible (hide when formula is ... Flag_Field="0")

user click on a button that set Flag_Field="1"

FIELD1 is not visible (hide when formula is ... Flag_Field="1")
FIELD1_R is visible (hide when formula is ... Flag_Field="0")
0
 
LVL 11

Expert Comment

by:larsberntrop
ID: 33732732
Or you can use a different  form or subform. On the new form define  the locked fields as computed. You do not have to close the form, use switchForm.
0
 

Author Closing Comment

by:dominoPgr
ID: 33736176
Great idea! I tried it out for text fields, it worked. Thanks a lot.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem setting value in rich text field with action 11 64
Lotus Domino server 11 73
Domino Lotus Notes Client 4 76
NT Kernel & System Process CPU Usage Maxin out 8 73
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…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

751 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