I am working with a simple API that returns some data as an array. I am trying to display the data in a table. The results from the API that are not part of the array look fine and the array data show up as Object, Object. I know I need to use the data format but I’m just not sure how or where to find an instruction that tells me the needed steps.
This is what the current field looks like:
I think this is what you were asking for. It shows that I am getting the data back but I think its just that I don’t know how to format it for the table?
Yes. It shows you have an embedded array in the JSON called ‘sources’. You can bind this array to an embedded repeat to list the individual elements. To ensure it can be seen in the Wappler UI to enable this visually, make sure the schema is defined in the server-connect API request.
Remove the dmx-text from the <td> and create a repeat region using this array inside the <td> </td> then inside this repeat you can bind the data you need.