Can LotusScript check if a back-end document is already opened but not active?

Can LotusScript check if a back-end document is already opened but not active?

Is it possible to check in LotusScript if a back-end document is already opened (but not active) in the current workspace? If so, is there a way to activate the corresponding window?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

No to the first question (unless you do some custom programming to keep track of what documents are open, for example using an environment variable).

However, when you call NotesUIWorkspace.EditDocument and specify a document, the default behavior is to just transfer focus to the document window if it's already open.

Do you have comments on this Ask the Expert Q&A? Let us know.

This was first published in April 2004