Solved

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

Posted on 2010-09-21
3
330 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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