How do i add an array to a field ,separated by comma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2018 11:38 AM
Hi,
I need to add an array of values to a field separated by , comma.i m getting only one value in that but not all the values.
for example array = {1,2,3}
field A should show me 1,2,3 but it shows me only 2
if i assign the same to a variable and check in the logs , it shows me 1,2,3 .but in the field only 2.
Can anyone please advise ?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2018 02:17 PM
First, {} is an object while [] is an array. But the important question here is what type of field do you want to put that "array" in? If it's a string field you can just type "1,2,3" and you are done.
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2018 02:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2018 01:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2018 03:27 AM
Can you please paste in the code here instead so it's easier to help out. Still wonder thou what type of field the current.u_hostname is.
//Göran