Solved

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

Posted on 2010-09-21
3
328 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
3 Comments
 
LVL 17

Accepted Solution

by:
fgrushevsky earned 250 total points
Comment Utility
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 10

Expert Comment

by:larsberntrop
Comment Utility
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
Comment Utility
Great idea! I tried it out for text fields, it worked. Thanks a lot.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now