LSD
October 7, 2022, 1:22pm
1
When the following blocks work, the result is "Samsung Galaxy A02". It just reads the trailing value. How can I read all "Name" tags? Thanks.
{
"RECORDS": [
{
"id": "1",
"url_hash": "9ff",
"brand_id": "1",
"name": "Nokia 3210"
},
{
"id": "2",
"url_hash": "714ffc005",
"brand_id": "1",
"name": "Nokia 5110"
},
{
"id": "3",
"url_hash": "74172986bf",
"brand_id": "1",
"name": "Nokia 6110"
},
{
"id": "99555",
"brand_id": "4",
"url_hash": "86bf",
"name": "Samsung Galaxy A02"
}
]
}
TIMAI2
October 7, 2022, 1:47pm
2
This should return all your names
to a label
2 Likes
LSD
October 7, 2022, 2:24pm
3
First of all, thanks, this method solved my problem, but I did not understand the logic of it. Why do I associate all "name" with "label"? Isn't "name" already a "label"?
Tim advised you to use that block inside the for each item in the list
If you want to get all the names as a list then use this block. No need of for each items in the list straight away use
Set label text to (this block)
2 Likes
TIMAI2
October 7, 2022, 3:00pm
5
You were trying to set the output to a label, so that is what I did
If you want a list, then add each value to a list
system
Closed
October 14, 2022, 3:01pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.