Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1429
  • Last Modified:

Programatically disable "Automatically enable Edit Mode"

When a field ARCHIVE_STATUS = "ARCHIVED"  I need to change the form to READ only mode.

How can I do it?
0
Zopilote
Asked:
Zopilote
  • 2
2 Solutions
 
qwaleteeCommented:
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
 
ZopiloteAuthor Commented:
thank you qwletee, unfortunately it doesn't work when the form has checked "Automatically enable Edit Mode" which is what my client want.
0
 
Andrew_M_BrewCommented:
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
 
ZopiloteAuthor Commented:
Thanks! that worked
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now