Solved

Programatically disable "Automatically enable Edit Mode"

Posted on 2011-02-16
4
1,402 Views
Last Modified: 2013-12-18
When a field ARCHIVE_STATUS = "ARCHIVED"  I need to change the form to READ only mode.

How can I do it?
0
Comment
Question by:Zopilote
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 250 total points
ID: 34912324
In the form's QueryOpen:
If Source.Document.ARCHIVE_STATUS(0) = "ARCHIVED" And Mode Then continue = False

In the form's QueryModeChange:
If Source.Document.ARCHIVE_STATUS(0) = "ARCHIVED" And Not Source.EditMode Then continue = False
0
 
LVL 5

Author Comment

by:Zopilote
ID: 34920879
thank you qwletee, unfortunately it doesn't work when the form has checked "Automatically enable Edit Mode" which is what my client want.
0
 
LVL 1

Assisted Solution

by:Andrew_M_Brew
Andrew_M_Brew earned 250 total points
ID: 34921450
In the PostOpen:
If Source.Document.ARCHIVE_STATUS(0) = "ARCHIVED" then Source.EditMode = false
... instead of the QueryOpen code posted by qwaletee.

Keep the same QueryModeChange code.
0
 
LVL 5

Author Closing Comment

by:Zopilote
ID: 34921803
Thanks! that worked
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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