Mobile app- Selected Value Issue

Hello there,

I'm trying to build a mobile app where I can select a specific value on the main page and use the value on the main page to go to a different screen with that specific value's information. Similar to how I would use selectedRow on a table for a webapp.

However currently whenever I go to the new screen, it takes the value of the most recent value. I was wondering if there was a selectedRow version for containers in the mobile app or a way to use the selected value from a different screen.

For example: The values in text1 are different each time and I am using an event handler to go to a new screen. I would like the new screen to show data with only relevant data based on text1's value.

The issue I'm having is text1.value in my query is always the most recent one and not the text1.value of that specific container that I selected.

Thanks in advance!

-Louis

1 Like

Hey @Louis_Rappaport! Welcome back to the community and thanks for reaching out. :slightly_smiling_face:

The typical pattern I recommend for persisting data from one screen to another is to create a global variable that you set from within the event handler on the home page before navigating away. That way, you'll be able to read the value of that variable from anywhere in your app.

I hope that helps! Let me know if you have any questions about this implementation. :+1:

@Darren Hi Darren, thanks so much for taking a look! That definitely helps! :pray: