- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 11:21 AM
I need a script which will push multiple values into a string with coma separated values. When I glide data from a table it should get multiple values and needs to be in the form of string with comma separated values.
Any references or pointers is highly appreciated. Please do the need,
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 11:27 AM
The easiest way to do this is probably to build an array, push in values to the array and then use the array's "join(',')" function to convert the array into a comma separated list.
var myStuff = [];
while(doingStuff) {
myStuff.push(stuff);
}
return myStuff.join(',');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 11:26 AM
Hello Ravi,
You want to store the values from reference field to string field with out commas. Am I right??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 11:27 AM
I need to get string in this form India,Sweden,Germany etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 11:32 AM
try replacing with values
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
g_form.setValue('field1', newValue.join(','));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 11:27 AM
The easiest way to do this is probably to build an array, push in values to the array and then use the array's "join(',')" function to convert the array into a comma separated list.
var myStuff = [];
while(doingStuff) {
myStuff.push(stuff);
}
return myStuff.join(',');