Passing Data from reusable container to repeating group

Hi all -
I have a reusable group at the top of my page that has a geolocation in it.
I am trying to pass that value to the main page (outside the reusable group).
After that i want a repeatable group to show users based on the “location’s value” which i write to a field in the USER type.
So user inputs location (or is prompted) in the reusable header (search), and the repeating group spits out the results, filtered by THAT location.

Any tips on how this is done? I can’t see the fields from the reusable group in the main page for some reason.

Gracias!

If the data is in a custom state on the RE itself, or it’s a Property of the RE, then it should be accessible from anywhere else on the page (and if it’s not, then that’s what you need to do).

Thanks for the reply.
So, set a state to the value of the element, and then I can reference the value in the pages’ dynamic sql?

I’d set up a custom state to set the location once the user inputs it (you can set it as a custom state against the main group on the page), then wherever you’re adding the location the dynamic value should be the groups custom state (ie the location that was set).