Article
John Murray · Mar 17, 2017 1m read

Portal tip: System Mode

If you work with Portal on multiple instances of Caché, Ensemble or HealthShare you might find it useful to set the System Mode of the various instances, so as to give yourself a visual reminder of the role of the one you're currently working on.

For instance:

or:

or:

or:

 

The setting is made here:

This feature is mentioned in the documentation here.

Under the covers the setting is stored in the global node ^%SYS("SystemMode") with possible values LIVE, TEST, DEVELOPMENT or FAILOVER. The value can also be fetched using $SYSTEM.Version.SystemMode()so it's possible to make your application sensitive to the system mode of its host instance.

By directly setting your own string into ^%SYS("SystemMode") you can make that part of Portal's title say something non-standard. For instance:

But keep in mind that the next time someone uses the Save button on Portal's "Memory and Startup" page your setting will be lost.

60
4 0 1 468
Log in or sign up to continue

Replies

Great article @John Murray!  We automatically set this global in our environment configuration logic (as well as set notify the user as to the application and environment type in ZWELCOME) whenever we run our customized instance configuration script.  Very helpful to make the intention of the environment clear whenever you are in the SMP!