project BLF > class BSetting > method GetConfigLabel
Description
Convert a fixed setting name into a (translated) setting label.
Translations are kept in fcTranslation.
Parameters
icConfigCode | input | character | |
ocConfigLabel | output | character | |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
program code (program1/bsetting.p)
case icConfigCode:
when {&SETTINGCONFIG-DRAFT}
then ocConfigLabel = {&SETTINGCONFIG-DRAFT-TR}.
when {&SETTINGCONFIG-CBF}
then ocConfigLabel = {&SETTINGCONFIG-CBF-TR}.
when {&SETTINGCONFIG-EVTPUBLISH}
then ocConfigLabel = {&SETTINGCONFIG-EVTPUBLISH-TR}.
when {&SETTINGCONFIG-OBJSEC}
then ocConfigLabel = {&SETTINGCONFIG-OBJSEC-TR}.
when {&SETTINGCONFIG-UICUSTOM}
then ocConfigLabel = {&SETTINGCONFIG-UICUSTOM-TR}.
when {&SETTINGCONFIG-WORKFLOW}
then ocConfigLabel = {&SETTINGCONFIG-WORKFLOW-TR}.
when {&SETTINGCONFIG-FIELDSECURITY}
then ocConfigLabel = {&SETTINGCONFIG-FIELDSECURITY-TR}.
when {&SETTINGCONFIG-AUTOSAVEGRID}
then ocConfigLabel = {&SETTINGCONFIG-AUTOSAVEGRID-TR}.
when {&SETTINGCONFIG-ALLOWSAVEGRID}
then ocConfigLabel = {&SETTINGCONFIG-ALLOWSAVEGRID-TR}.
when {&SETTINGCONFIG-AUTOSAVELASTUSED}
then ocConfigLabel = {&SETTINGCONFIG-AUTOSAVELASTUSED-TR}.
when {&SETTINGCONFIG-ENABLEPERSISTENTCACHE}
then ocConfigLabel = {&SETTINGCONFIG-ENABLEPERSISTENTCACHE-TR}.
when {&SETTINGCONFIG-OBJECTTRANSLATIONS}
then ocConfigLabel = {&SETTINGCONFIG-OBJECTTRANSLATIONS-TR}.
end case.