Creating a spinner (drop-down list) from JSON downloaded from the server

Hello, unfortunately I am not proficient in MIT APP, but I have to create a small application and problems have arisen.

In the application, I refer to the server and a PHP file that returns JSON code:
[{"id":2,"data_z":"2025-02-06","name":"Test"},{"id":3,"data_z":"2025-02-06","name":"Test2"},
{"id":4,"data_z":"2025-02-06","name":"Test3"}]

I need to get the data from this code and turn it into a spinner drop-down list, but I have no idea how to do it. I search the web, but unfortunately I can't cope. Maybe someone will help and show me how to do it. I will be very grateful :slight_smile:

Here are some additional tips that might be helpful:

When you are asking for help with code, it is always helpful to include the code that you have already written. This will allow people to see what you have tried and give you more specific advice.
Be clear about what you are trying to achieve. The more specific you are, the easier it will be for people to help you.
Be patient. It may take some time to find someone who can help you.

I hope this helps!

Which elements from each record do you want to show in your spinner, what would it look like ?

In the application I have a spinner1 inserted, it should be a drop-down list presented in the form of HTML select.

`<option value='1'>Test1 2025-02-25 </option>
<option value='2'>Test1 2025-02-25 </option>
<option value='3'>Test1 2025-02-25 </option>`

that is <option value='id'>name date_z</option>

I have no idea how to do it, I've been struggling for several hours and nothing. It seems simple, but I keep getting errors.

I have no idea how to create this spinner, fetching the parameters from the JSON :frowning: I displayed the JSON in a text field, so it fetches it correctly, but I stopped there :frowning: HELP :frowning:

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

image


pyrek.aia (2.1 KB)

You might want to capture the list of dictionaries into a global variable, and filter it by one of the dictionary attributes?

P.S. This is called YAML format. It's easy to read.

image

spinnerFromJson.aia (3.1 KB)

Thanks a lot for your help, I should be able to handle the rest. You guys are great - thank you.