This seems way too easy but I don’t see anything on the forum about it.
I have a simple reusable button with text in it. I want to the text to display the Current Page Thing’s Name.
On the reusable element I have text that is “Parent Group’s Thing’s Name”, and of course on the page I have the reusable element in a group that’s data is the Current Page Thing.
But it doesn’t display! I’m confused.
You obviously don’t have things set up the way you think you do (i.e. somewhere your data sources must be set up incorrectly, or something is missing, or blocking access to data etc.)…
Without knowing more, it’s impossible to say what, but the debugger will tell you what’s going on, so check that to find the issue.
Alright so text from the reusable element should be able to reference a parent group within the page it’s on?
When I place a button in the same group with “parent groups name” then it displays the name properly.
The reusable elements data type is “things”. The button’ within the reusable element data type is “things” from source“parent groups thing”.
Is that source referencing within the reusable element or the page that it’s contained within?
Alright so text from the reusable element should be able to reference a parent group within the page it’s on?
Not directly, no (elements inside a reusable element can’t reference elements on a page, as there’s no way to know what page they’re on)…
Without seeing your app (either an editor links, or relevant screenshots), it’s impossible to give any specific help…
But it sounds fairly certain that you’re not passing the data correctly from one element to the next…
Again, without seeing you app I can’t say where your error lies, but if you use the Debugger it should be fairly simple for you to find it.
Alternatively, feel free to share a link to your editor on here so I, or someone else, can take a look…
Sorry for the late reply. It was the case that I had an extra group within a group situation going on - and not passing info correctly as you suspected.
I have since learned how to navigate using the sidebar and keep my app much cleaner lol
1 Like