Help with displaying API result arrays

Hi everyone, I’m working on a Glide app where I have a list of people, and for each person, I make an API call to retrieve all their documents. The API returns a JSON result, and I have successfully formatted this into an array, where each element corresponds to a document entry. For example, if the API returns 10 documents for Person A, I process the result and split it into an array of 10 elements.

The challenge I’m facing is displaying this array. I want to show these document entries as a collection or a list, but as far as I know, Glide doesn’t have a direct way to display an array as a collection. I have considered working with relations, but I don’t have a dedicated table that stores all the documents.

I was wondering if anyone here has experience handling similar scenarios. What strategies or methods do you use to display arrays or dynamically generated lists from API calls in Glide? Any advice or suggestions would be greatly appreciated.

Something like this may be of interest.

I really need an updated version of this video.

Thank you. Unfortunately that’s not what I was looking for. I have tried several methods including the miracle method (which is awesome btw) but tbh did not find anything really handy for my task.

Custom AI component can actually accept array and display, for example cards for each its elements, but I think it won’t be stable and may cause some issues later.

That method helped me a lot. Thank you @Robert_Petitto https://www.youtube.com/watch?v=7F4e9JatqeM&ab_channel=RobertPetitto

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.