InterSystems FAQ rubric
Global mappings can be registered using the system class Config.MapGlobals.
The method to globally map ^Sample.PersonD in a database SAMPLES other than the default database from the namespace USER is as follows (example executed in a terminal).
USER>zn "%SYS"
%SYS>set ns="USER"
%SYS>set glo="Sample.PersonD"
%SYS>set vals("Database")="SAMPLES"
%SYS>set st=##class (Config.MapGlobals).Create(ns,glo,.vals)The third argument of the Create() method of the Config.MapGlobals class is passed by reference, so specify it by appending a period (.) to the variable name.
