# Pass additonal values to "Show New Screen"

**URL:** <https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010>\
**Category:** Ask for Help\
**Created:** [August 27, 2021, 3:28am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010 "2021-08-27T03:28:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChaseFlorell](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/chaseflorell/32/30932_2.png) [@ChaseFlorell](https://community.glideapps.com/u/ChaseFlorell)\
**Post date:** [August 27, 2021, 3:28am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/1 "2021-08-27T03:28:06Z")

</div>

My scenario is sort of convoluted.

I have a list of cities. When you click on that City, I want to take to to the details for it.  
Then inside that city I have two “Show New Screen” buttons, one that points to a “Relation” of Businesses, and the other that points to a “Relation” of Events.

Once I click either button, I’m presented with the list of Businesses/Events respectively.

These lists need to allow the user to “Add New”, and they do, however when I do, I’ve lost fidelity into the “CityId”, There is no payload passed to the “Add New” button aside from the user details.

One thing I tried (unsuccessfully) is to updat the user table with their last\_viewed\_city\_id when they view a city, but I can’t seem to be able to update the user in that way, in fact the only thing “Set Column Values” lets me mutate is the would be the city itself.

Is there a way to either

a) pass the CityId from the City Details page all the way through to the Add new business page  
b) modify the user record with their last known city when they select a city?  
- note: I don’t want to add a new value to a new row as I think I could very quickly hit my 25,000 row cap.

I’m kind of at a loss here and am not sure how to proceed.

 ![Screen Shot 2021-08-26 at 8.25.37 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/805f80c45648c52cc9e96dedea6f79ddf7249d16.png)  
 ![Screen Shot 2021-08-26 at 8.25.28 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/8/689e863b4b8fa039ce52fcb0e5e0c358e7396ecf.png)  
 ![Screen Shot 2021-08-26 at 8.27.05 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/3/636ae06b36de1295f5aeea50e39a8c6446e6f7b1.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 27, 2021, 3:46am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/2 "2021-08-27T03:46:48Z")

</div>

> [@ChaseFlorell](#):
>
> One thing I tried (unsuccessfully) is to updat the user table with their last\_viewed\_city\_id when they view a city, but I can’t seem to be able to update the user in that way, in fact the only thing “Set Column Values” lets me mutate is the would be the city itself.

What you need to do here is create a single relation between your current table and your users table. Do this as follows:

- Add a template column in the current table containing the UserID of the signed in user
- Use this to create the relation (make sure it’s a single relation)

With this in place, you should be able to use Set Column Values in your action on any column in your user table through that single relation.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 27, 2021, 3:55am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/3 "2021-08-27T03:55:32Z")

</div>

Another thing that I like to do is, instead of using Show New Screen → Relation, I use Show New Screen → This Item, which gives you a new screen for the city row. On that screen you could add an inline list that uses the relation to show the businesses. Then you can add a button or floating button that opens a form to add a new business. In that you will still have access to the city data since you are still on the city row.

---

<div class="post-metadata">

**Author:** ![ChaseFlorell](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/chaseflorell/32/30932_2.png) [@ChaseFlorell](https://community.glideapps.com/u/ChaseFlorell)\
**Post date:** [August 27, 2021, 3:57am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/4 "2021-08-27T03:57:19Z")

</div>

I think this solution will have some legs! I’m going to give it a try, thank you!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 27, 2021, 3:58am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/5 "2021-08-27T03:58:51Z")

</div>

> [@Jeff\_Hager](#):
>
> Another thing that I like to do is, instead of using Show New Screen → Relation, I use Show New Screen → This Item, which gives you a new screen for the city row.

ah, yes - of course. I missed that!

---

<div class="post-metadata">

**Author:** ![ChaseFlorell](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/chaseflorell/32/30932_2.png) [@ChaseFlorell](https://community.glideapps.com/u/ChaseFlorell)\
**Post date:** [August 27, 2021, 4:02am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/6 "2021-08-27T04:02:32Z")

</div>

That did it, thank you!  
Now if only I didn’t have to completely rebuild my layouts for the bazillionth time ☹

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 27, 2021, 4:16am UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/7 "2021-08-27T04:16:31Z")

</div>

You can always copy and paste components between screens to save some time. 😉

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:50pm UTC](https://community.glideapps.com/t/pass-additonal-values-to-show-new-screen/31010/8 "2024-01-17T16:50:52Z")

</div>


