ftos.utils.getAppSetting
IMPORTANT!
Starting with v24.3.0, this is renamed from getAppSetting to ftos.utils.getAppSetting.
Starting with v24.3.0, this is renamed from getAppSetting to ftos.utils.getAppSetting.
Returns the value of a key in the <appSettings> section of the Web.config file.
This method is suitable for all business service components modules.
Syntax
function ftos.utils.getAppSetting(settingName: string): string
| Parameter | Description |
|---|---|
settingName
|
appSettings entry in the Web.config file you wish to return. |
Return Value
Returns the value of the appSettings entry.
Examples
In this example:
- We store the value of the FileUploadWhiteList setting in a variable called message.
- We display the message on screen. For details on how to display messages, see ftos.context.response.setMessage.
var message = ftos.utils.getAppSetting('FileUploadWhiteList');
ftos.context.response.setMessage('The following file types are supported: ' + message);