Repeating group - API - search

Hey everyone,

I’m pulling movie data from the OMDb API using Bubble’s API connector. The API call is working—I can see the full JSON response in the API connector.
When I try to display the movies in a repeating group i managed to show the title and now that ehere things gets tricky for me, i need to pull the special id from the title i pulled via api, to bring the right poster (photo) for the movie card.

now i played with it and i worked for the first cell but the rest of the cells took the photo of the first one as well. (even if the title is different).

a friend told me to use “current cell” and then the value i need, but i cant find “current cell” in my opeerators.

any ideas where to start? im stuck on that part for 3days alreday and getting frustrated

thanks in advance,
Gal Salman.

Can you share api connector setting and screentshot of popup when you initialize the call. Also share rg settings

1 Like

i have two api calls currently using just one.
next step is details about every movie

and rg settings

let me know if need anything else
thanks ! :slight_smile:

I think your RG settings is wrong because you are using again the API data.
Let’s say you have nothing in your RG. if you add a text element in the first cell, you should be able to select Current cell’s OMDB SearchMovies’s title. You could add a group and set it to type “OMDB - Searchmovie” item and you will be able to also use Current cell…

Your RG data source, if you want to random the items order, is where you should placve the :random function. Not in the RG cell.

Once you will understand the RG use and the “Current cell” stuff, you will be able to access to any of your key including the ID of the “Current cell”. Consider that if you keep adding nested group, you may refer the nested group using the “parent group” (or you can use the First main group name instead)

For the details about movie, in the cell, you will be able to set a group of the API type “movie details” and set the Get data from API and use Current cell (or parent group) 's id

2 Likes

amazing!
you helped me so much i was stuck on this for 2 days.
much appreciated!

one more thing,
if im pulling data for a popup window is it by pulling data from the parent group ?

1 Like

You need to use display data action to push current cell data to the popup. Display data in popup > show popup

1 Like

thanks!
tried several ways, im trying to use display data in the popup work flow

is it correct?

if it dose i cant bind the data to the pop up for some reason it keeps it blank

MADE IT !

1 Like