How can I get all values of a setting of a Production item programmatically?

I wish to retrieve all the setting values for a given production. I have found

   Set tSC=##class(Ens.Director).GetProductionSettings("EXC.EXC",.tSettings)    WHERE EXC.EXC is the name of the Production

My question is

1) Does .tSettings contain the settings?

2) if  yes, how can I show them.

3) if no, how do I get the settings values?

  • 0
  • 0
  • 106
  • 2
  • 1

Answers

1) Yes.

2) Use zwrite command for debugging and key access to get individual values:

zwrite tSettings
set value = tSettings("MySettingName")

Note, that if you want production host settings, you'll need to use GetHostSettings method from the same class.

Comments

I need to provide a table  that lists  the  settings for the Services, Processes and Operations in a production.

After executing  your code I see I asked the wrong question.

I need to provide a table  that lists  the  settings for the Services, Processes and Operations in a production.

I would like to produce something like the Production document but I get to chose which items are listed. Is this possible?