How do I get the documents that open from an embedded view to be in “EditDocument” mode instead of “ViewDocument”? The form with the embedded view is being used on the web and the embedded view is being displayed using HTML. I’ve tried placing this code:
Dim workspace As NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set workspace = New NotesUIWorkspace
Set uidoc = workspace.currentDocument
uidoc.EditMode = True
in the Queryopendocument event but it doesn’t make a difference.
Any suggestions?
Thanks
Tom
Subject: Embedded View question
If you are doing your own html views, then what is your code to “open” the doc?
Change it to “0/” + @text(@documentuniqueid) + “?EditDocument”
Subject: Embedded View question
Hey Tom –
Remember, the QueryOpen event does not work on the web – Notes client only.
Since you are displaying using HTML, just code your link to edit the document:
“/” +@WebDBName +“/0/” +@DocumentUniqueID +“?EditDocument”
Hope that helps,
Jerry T
Subject: RE: Embedded View question
Thanks for the response guys.
I think I’m doing mine differently. All I did was embed a view I had created under the create menu. When I previewed the page with the embedded element in it the link was supplied automatically with “OpenDocument” as the default. Is there a way to change that? Or do I have to embed the view a different way to be able to put linked document in Edit mode?
Subject: RE: Embedded View question
You can deselect the column property “Show values in this column as links” from all columns, then create your own links in one of the columns:
“[” + “<a href="” + @ViewTitle + “/” + @Text(@DocumentUniqueID) + “?EditDocument">” + FieldToDisplay + “]”
The square brackets make the value pass-through HTML, which means that Domino will use the HTML you created in that column.
Subject: RE: Embedded View question
“[ <a href="” + @URLEncode(“Domino”; @Subset(@ViewTitle; -1)) + “/” +
@Text(@DocumentUniqueID) + “?EditDocument">]” + FieldToDisplay + “[ ]”
Subject: RE: Embedded View question
Great!! Thank you so much for the help.