I have a response document that is visible in views, but is also available to edit within the parent document via an embedded editor. Right now, I have the response doc set to automatically switch to edit mode (ideally for use in the embedded editor), but I really don’t want the user to edit it directly when accessing the doc from the view.
Is there a property or function available in LotusScript that will allow me to easily test which environment this response doc is being opened? Or are there any other suggestions on how might control this editmode behavior?
I currently have LotusScript witten in the response document’s PostOpen event to control the editmode, so ideally I’d like to continue building this logic here if possible.
Thanks, in advance, for any suggestions!
-Robert A Moeller
Subject: How to set a document into edit mode, conditionally in LotusScript?
Perhaps…
-
Hide the response documents in the view
-
Display a list of key values of the response documents in the parent document using a Dialog List
Subject: Please clarify…
Thank for the response, Bill. But can you help clarify your second line. I’m not clear how I might use that in conjunction with my embedded editor on my parent form. It sounds like the form would then be opened in its own window, or a frame, based on your suggestion. Is that right?
-RAM
Subject: Re: How to set a document into edit mode, conditionally in LotusScript?
You can also write a QueryOpenDocument event for the view where your docs are displayed, and make your response docs visible in view, but impossible to open at all.
Here’s an example in LS:
Sub Queryopendocument(Source As Notesuiview, Continue As Variant)
Dim col As NotesDocumentCollection
Dim doc As NotesDocument
Set col = Source.Documents
Set doc = col.GetFirstDocument
If doc.GetItemValue(“Form”)(0)= Then continue = False
End Sub