Sending data to another page of type api

Hi all,
I have a page which has a repeating group and the repeating group’s type of content is an api endpoint that I have set up (the api returns details on a bunch of inventory items). When someone clicks on one of the cells of the repeating group, I need it to navigate to another page which shows the inventory item in more detail. When I went to change the content type of the inventory item details page, the api endpoint data type isn’t there. Clearly bubble doesn’t allow this.

So my question is, what is the best way to do this? I know I could save the data to an actual database data type and then access that but that’s a hacky solution.

Anyone have any better ideas?
Thanks,
Paul

It should be there.

One hack can be-

Setup the dummy API call that returns the inventory details object and now setup the page type of this object.

Now you can pass inventory details data to the page.

Ankur@Nocodetalks
Looking for a Bubble Coach? Buy Bubble.io mentorship

Hi Ankur. Thanks for your help.
Here’s the data type (api) - Agents result
image

And here are the options to choose the page type and as you can see when I search for it, there are no results:
image

In terms of your hack, not entirely sure what you mean. When you say “set up the page type of this object”. There’s nothing in the drop down that allows me to chose this type. Are you able to explain a little more?

Ohh got it.

I was wrong.

You can’t pass the “type of content” other than Bubble native Data type.

OK thanks. So my only option is to save the data to a native data type?

Is it possible to get the data via the ID from the API?

One other way can be-

Create the inventory details page on the listing page itself.

Whenever someone click on the repeating group item, show that inventory details group and pass the “path list” into URL- that will gives the feel of opening the new page.

Not a bad idea. Ok I think I’ll do that. Thanks for your help.

1 Like

You’d just send the individual details you need to make the “detail” API call as primitive data types and make that call on the subsequent page. BUT… If you want to get fancy:

1 Like

Ok that will work. Thanks keith. I will also check out that video.

how did you get the Current cells Agents result option
I am not getting any option related to result
Can you explain???

Can you send a screenshot of your setup? Not quite sure how to answer your question