bsg
January 8, 2023, 7:46pm
1
I have the query with various values. Ex:
“data”: [
{
“PID”: “123456”
},
{
“PID”: “1234567”
},
{
“PID”: “12345678”
},
{
“PID”: “123456789”
}
]
},
I need format this value in: [‘123456’, ‘1234567’, ‘12345678’, ‘123456789’]
How to make this?
bpj
January 8, 2023, 7:50pm
2
You could try 'data.values()'
1 Like
bsg
January 8, 2023, 7:56pm
3
Error: “status”: “500”,
“message”: “Parser Error: Formatter “pixelID” does not exist, expression {{data.query[0].pixelID()}}”
I’m using set-value!
bpj
January 8, 2023, 7:58pm
4
Can you post your server connect steps?
bpj
January 8, 2023, 8:00pm
5
It may well be that you need something like:
data.query.values('pixelID')
bsg
January 8, 2023, 8:07pm
7
I need to convert the strings in the database into a single array to insert into 1 argument in the java script.
bpj
January 8, 2023, 8:08pm
8
Where you have the parameter properties, make sure you choose the pixelID from the set value step (should be later in the list) rather than the query. If you have the [0] then it’s the wrong one.
bsg
January 8, 2023, 8:14pm
9
Its look like this: data.query.values(query[0].pixelID) ?
bsg
January 8, 2023, 8:18pm
10
A list similar to the previous one appeared, however, it cannot contain these { and }.
bpj
January 8, 2023, 8:22pm
11
It looks like it should be query.values('pixelID')
for the set value
bsg
January 8, 2023, 8:50pm
12
Returned [
{
“pixelID”: “51515151512”
},
{
“pixelID”: “656545646”
},
{
“pixelID”: “123451234523”
},
{
“pixelID”: “21312”
}
]
bpj
January 8, 2023, 8:52pm
13
Actually try:
query.flatten('pixelID')
1 Like
bsg
January 8, 2023, 11:30pm
15
I need convert " in ’ for script run. <- solved!