Solved

Programatically disable "Automatically enable Edit Mode"

Posted on 2011-02-16
4
1,416 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
[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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

717 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