Previous Topic

Next Topic

Book Contents

Book Index

Via the Registry

All information is placed in a volatile key in the Registry, at the so-called LastRun subkey of Notes Menu Launcher. Every time the user select one or more documents in a view or document, and then invoke one of "our" menus, the LastRun-subkey will be updated.

In addition, when the menu execute either a NotesAgent or NotesFormula, several entries will be written to the Notes.ini.

The exact placement of the LastRun-subkey is determined by parameter 2 in the XML configuration file. This will be discussed in detailed later in this chapter. For example the complete subkey can be;

HKEY_CURRENT_USER\Software\Voith's CODE\Notes Menu Launcher\LastRun

Note that the hive is the CURRENT USER!

The values stored in the LastRun-subkey are as follows (note, all values are of type string REG_SZ);

Value

Description

Config

The full path and filename of the XML configuration file. Note that this value can also be the path and filename to the default, built-in XML configuration file.

SID

The ID of the current menu selection. This is the ID value directly in the NotesMenu-element. Please ensure that you use only unique IDs when you configure Notes Menu Launcher!

Server

The Domino server name of the selected database. It can also be blank or not specified at all, and then the database in question is located on the local client.

Database

The relative Notes database filename of the selected database. You can also use a replica ID here if you prefer. If you do, be sure to specify the replica id on the format similar to the sample below;

C1256981:0043BC90

Context

A value indicating the user operating context. The values are:

103 = In a document, in read mode

104 = In a document, in edit mode

200 = At the workplace

201 or 0 = In a Notes view

NoteID

One or more comma separated NoteIDs. Note that all NoteIDs are in the decimal form.

By querying these values in your own applications you can work out what document(s) to work on.

See Also

How Notes Menu Launcher communicates to the outside

Via Notes.ini

Via parameters