Recently I stumbled across an undocumented,
but in some cases quite useful formula language function: @LocationGetInfo.
You can access some items of the current
location document, but only some.
These calls work:
@LocationGetInfo([AreaCode])
@LocationGetInfo([BookmarksFilename])
@LocationGetInfo([CatalogServer])
@LocationGetInfo([Country])
@LocationGetInfo([HomeServer])
@LocationGetInfo([InternationalPrefix])
@LocationGetInfo([InternetMailAddress])
@LocationGetInfo([LongDistancePrefix])
@LocationGetInfo([MailProtocol])
@LocationGetInfo([NamePreference])
@LocationGetInfo([SametimeServer])
@LocationGetInfo([WebRetriever])
The following two are most interesting
of all:
@LocationGetInfo([FullName])
@LocationGetInfo([UNID])
[Fullname] returns the name of the current
location, [UNID] is its unique ID.
Using [Fullname] you can easily access
all other fields, e.g.
@Prompt([OK];
"MailFile";
@DbLookup("Notes"
: "Cache";
""
: "Names.nsf";
"Locations";
@LocationGetInfo([FullName]);
"MailFile"))
Sources
Information on the undocumented @LocationGetInfo
function,
http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21094302
Technote update -- Undocumented function
@LocationGetInfo,
http://www.thenorth.com/apblog4.nsf/Threaded/C595A9D896C79E26852571CE00470D84
Undokumentierte @Formeln/LotusScript
im Lotus Notes Client/Server (in German),
http://news4notes.com/web/dokumente/notes_undocumented_formula.html