Troubleshooting
Problem
Certain input fields in Connectors and Function Components require values on separate lines. If there is a requirement to have these fields pull input from an external property file, then additional script will be required to reformat the key:value pair input into multiple line input for the field.
Symptom
Environment
Diagnosing The Problem
Example: The 'Storage Notification Server(s)' field of the JMSPasswordStoreConnector requires that each entry be defined on a separate line.
Resolving The Problem
To add the script required, select the 'Advanced (JavaScript)' evaluation method for the parameter value as shown:
- -- Example Script --
// refers your pre-defined external property
sns = system.getTDIProperty("StoreNotificationServers");
// create an array by splitting 'sns' based on a specific character
values = system.splitString(sns, ",");
str = "";
// loop through array and append a New Line character
for(i = 0, n = values.length; i < n; i++)
{
//append New Line character if not last index in array.
if(i != (n - 1))
{
str += (values[i] + "\n");
}
else
{
str += (values[i]);
}
}
return str
[{"Product":{"code":"SSCQGF","label":"Tivoli Directory Integrator"},"Business Unit":{"code":"BU008","label":"Security"},"Component":"General","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0;7.1;7.1.1;7.2","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21446659