How to open a document via a hotspot

I want to present the user with a form or page containing a map of the United States. Each state on the map will be it’s own hotspot that when clicked will open a form containing our salesperson territory and contact information.

I can get the hotspot to open the proper form but in order to do so I have to do an OpenView @Command prior to doing an OpenDocument @Command. The OpenView command opens another instance of the database, which IMO looks messy and can confuse the user.

Is there a way to open a document, via a hotspot, without having to open a view first?

I tried @Command([OpenDocument];“”;“F56ACC1F6F27155D8525686500603D43”) without the OpenView command but it does not like it.

Subject: You could use an Lotusscript agent…

Use @Environment for write the universalID of the document you wan’t to open to notes.ini.(Or you could use a profile document if preferred)

Then use @Command([ToolsRunMacro]; ) to launch your agent.

From the agent read the value from notes.ini (or profile document) and do the magical stuff to display the document.

Good luck

Ove

Subject: URL commands

Have a look at the URL commands to open documents/forms/pages. In the Designer Help, look under the topic “Domino URL Commands”

Once you decide what command you want, you can make your hotspot be a URL Link, or an action that calls @URLOpen

Subject: Thanks Ove and Stuart

Thanks for the responses, I’ll look into both of them.

When programming in Lotus Notes I always forget about @Envoriment. . . and tinkering with the ini as possibilities, thanks for the reminder.