Selecting a document and getting it to open in a browser
Yes, assuming the application is available on a Domino server with HTTP task-enabled. However, I have to wonder why, when you have the Notes client available, you would want to use a Web browser to open the document. You might want to think about ways to do in the Notes client whatever it is you're using the browser for now.



Download: IT Certifications 101
Inside this exclusive essential guide, our independent experts break down which IT certifications are worth your time and effort, and how to get started obtaining them to further your career— including specific certifications that any cloud or desktop pro should seriously consider.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
You also agree that your personal information may be transferred and processed in the United States, and that you have read and agree to the Terms of Use and the Privacy Policy.
Anyway, to open a browser window in lieu of the Notes document, you need to code in an event that will notice the user trying to open the document, and do something else instead. This code may either be in the Queryopen event of the form (if you want it to do this from every view) or in the Queryopendocument event of the view (if you only want to have it happen in a particular view). In either case, you would use the statement Continue = False, which is the signal to Notes to not go ahead with opening the document, and then use NotesUIWorkspace.URLOpen method to open the browser window and display the document in it.
Of course you will need to compute the URL of the Notes document. In the simplest case you can use the NotesDocument.HttpURL property for this, but if you're trying to do it from a replica other than the one on the Domino server you are "browsing" on, you'll have to compute the URL using an expression such as "http://server/yourdb.nsf/0" & doc.UniversalID & "?OpenDocument."
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on Web Development for Lotus Notes Domino
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our Domino experts
View all Domino questions and answers
Start the conversation
0 comments