Question
· Jun 26, 2020

Ens Director GetItemSettingValue not picking up system default

We have code with the line 

Set archiveFilePath=##class(Ens.Director).GetItemSettingValue("ReadPDFFileService","Adapter","ArchivePath",.status)

When we have this archivePath set as a System Default setting rather than Production definition setting i.e. shows in blue rather than black in the restore default screen it doesn't get the setting value. We want to get this value nomatter what way it is set. 

Running 2016 Healthshare

Discussion (5)1
Log in or sign up to continue

GetAdapterSettingValue() may give you what you want. The Type parameter isn't needed.

Set archiveFilePath=##class(Ens.Director).GetAdapterSettingValue("ReadPDFFileService","ArchivePath",.status)
 

There's a corresponding GetHostSettingValue() method for non-adapter settings that works similarly.

Both seem to supply the System Default Setting when the setting is unvalued in the production.

Neither option seem to work. We hope to within the next few months get up to date with our healthshare environment. 

Nothing in the Production def left over 

When try the set and write for either line of code when on default returns nothing 

When i change it off default it works- but as this changes between environments want to be keeping this as a system defualt