2022-06-14 13:47:31 +00:00
|
|
|
/* JavaScript: getConfigValue action
|
2022-06-14 13:45:39 +00:00
|
|
|
Retrieves the configuration element attribute value for a given key.
|
|
|
|
Inputs: path (string), configurationName (string), variableName (string)
|
|
|
|
Return type: string
|
|
|
|
*/
|
|
|
|
|
|
|
|
var configElement = null;
|
|
|
|
for each (configElement in Server.getConfigurationElementCategoryWithPath(path).configurationElements) {
|
|
|
|
if (configElement.name.indexOf(configurationName) === 0) { break; };
|
|
|
|
}
|
|
|
|
var attribValue = configElement.getAttributeWithKey(variableName).value;
|
2022-06-14 13:50:29 +00:00
|
|
|
|
2022-06-14 13:45:39 +00:00
|
|
|
return attribValue;
|