?
Solved

Programatically disable "Automatically enable Edit Mode"

Posted on 2011-02-16
4
Medium Priority
?
1,421 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 1000 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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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