Create a thing and then add another thing to it

Hi there,

I am trying to create an app to track cellular service over the course of a drive. I am getting stuck on creating a route and then having all of the markers go under that one specific route. As of right now each marker is created, but does not attach to the route created. Additionally, when I create the route, I would like only those markers to be shown and when I start over for it to clear the current route and start new. What am I missing here?

1 Like

Hi Aloecf,

Can you share a working link to your project, and some more details? Knowing how your things are structured would be helpful.

Thanks,

-Jon

1 Like

Have you done the Tutorials ?

Either have a field of type Route on the Marker.

Or a list of Markers on the route.

(or both)

Hey Jon,

Does this link not work?

https://bubble.io/page?name=index&id=cellservicetracking&tab=tabs-2

Yes I’ve done the tutorials a few times now especially the structuring data. That’s the part it doesn’t talk about is how to point a list of things to another type

Hi aloecf,

I hope you don’t mind, but I’ve made some small changes on your application that I THINK will get you where you want to be. I’d intended to create my own version of the app and just provide instructions, but my time is tight right now and I wanted to get you an answer.

For either future reference, or so you can revert it if you choose, here is what I did:

  1. Set the Type on the Tracking element to Route

  1. When a Route is created, set the display data on Tracking to the newly created route

  1. When a Marker is created, set the Route to the Tracking Route

  1. Add the newly created Marker to the current Route Marker’s list

I hope that helps!

-Jon

That was exactly it! It was creating a type for the tracking element which helps point the data. Good man Jon thank you!

This topic was automatically closed after 70 days. New replies are no longer allowed.