Startup ensure community AppSettings
GG-CE Web uses a set of AppSetting
for its function. Please add, similar to how we ensure CommunityCodeValues
, startup code that ensures AppSetting
are in the database.
First example
UI fetches the app setting ApplicationService.getSetting('INVENTORYVIABILITY_REPLICATE', 'LABEL')
.
Please ensure that the setting has a value (exists and is not null), if not use default:
^XA
^CF0,30
^FO50,10^FDViability {{ inventoryViability.id }}#{{ replicate }}^FS
^FO50,40^FDINV {{ inventory.inventoryNumber }}^FS
^FO50,90^FDACC {{ accession.accessionNumber }}^FS
^FO50,120^FD{{ taxon }}^FS
^FX Third section with bar code.
^FO50,150^BQN,2,6^FD{{ inventoryViability.id }}#{{ replicate }}^FS
^XZ