Hi, I’m new to notes and need a little help.I have a document with a field in it thats populated by a dialoglist on the form with 5 choices one being “Approved”. So what I want is, whenever the Document is opened and has “Approved” in this field, the document need to open in edit mode. Any hints on how to do this? Thanks.
Subject: Opening a document in edit mode.
put this code in the form’s PostOpen event
@If(Status = “Approved”; @Do(@Command([EditDocument]; “1”)); “”)
Subject: RE: Opening a document in edit mode.
Thanks for you quick response. I stuck that code in and it still isn’t opening in edit. Any other ideas?
Subject: RE: Opening a document in edit mode.
Did you change Status to match the field name you are using?
Subject: RE: Opening a document in edit mode.
Yes I did. Not sure whats going on.@If(DocumentStatus = “Assigned”; @Do(@Command([EditDocument]; “1”)); “”)
Subject: RE: Opening a document in edit mode.
It works fine for me. If field is something other than “Approved” it stays in Read mode, otherwise it goes into edit mode. You must have something else going on that is preventing it from working as you wish.