Question Vincent Caede · Aug 8, 2024

Is it possible to change the display name of a custom production setting?

Hi,

I created a property in a Business Process class and added that property to the "settings" parameter to display it as a field in production settings.

Property ServerName As %String(MAXLEN = "");

Parameter SETTINGS = "ServerName:Server Config";

Property names cannot contain characters such as underscore or whitespace. Is there any way to change the display name in production so that I can show this setting as "Server Name" and not "ServerName"?
 

  

Thank you in advance.

Product version: IRIS 2022.2

Comments

Enrico Parisi · Aug 8, 2024

I don't think there is an official support way to achieve that.

However, if you temporary change ENSLIB database and remove read-only flag and then:

Set ^IRIS.Msg("EnsColumns","en","ServerName")="Server Name"

or maybe better:

s ^IRIS.Msg("EnsColumnsNAMESPACENAME,"en","ServerName")="Server Name"

where NAMESPACENAME is the name of your production.

And then you put back the read-only flag in ENSLIB  database......you will find a surprise 😉

Note that this is a kind of a hack, you lose the "surprise" when you upgrade and may not work in future versions.

Edit: see @Eduard Lebedyuk advise below for a much better way to do it using global mapping instead of changing ENSLIB

0
Eduard Lebedyuk  Aug 8, 2024 to Enrico Parisi
^IRIS.Msg("EnsColumnsNAMESPACENAME,"en"

Can be mapped to your DB, so you won't lose the changes on update (and also you won't need to make ENSLIB RW).

0
Enrico Parisi  Aug 8, 2024 to Eduard Lebedyuk

EXCELLENT advise/suggestion! I fully agree that using global mapping is MUCH better. 👏

0