# Attempting to update values in two table upon submit via a relation and Set Column Values (but so far it's a no go :-( )

**URL:** https://community.glideapps.com/t/attempting-to-update-values-in-two-table-upon-submit-via-a-relation-and-set-column-values-but-so-far-its-a-no-go/56188
**Category:** Ask for Help
**Tags:** actions
**Created:** [December 30, 2022, 8:46pm UTC](https://community.glideapps.com/t/attempting-to-update-values-in-two-table-upon-submit-via-a-relation-and-set-column-values-but-so-far-its-a-no-go/56188 "2022-12-30T20:46:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Technoladie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/technoladie/32/52202_2.png) [@Technoladie](https://community.glideapps.com/u/Technoladie)
#### Post date: [December 30, 2022, 8:46pm UTC](https://community.glideapps.com/t/attempting-to-update-values-in-two-table-upon-submit-via-a-relation-and-set-column-values-but-so-far-its-a-no-go/56188/1 "2022-12-30T20:46:36Z")

</div>

So, full disclosure here… I’m a noob when it comes to Glide, BUT I’ve got EXP with other big box low code tools and tend to grasp concepts pretty quickly.

I decided to dip my toes in the water with the infamous “INSIDERS” template build which is a great way to be introduced to most of Glide’s features (I was even able to translate from the old Glide interface to the 2.0 release pretty smoothly during the build).

Well, in the app, if you want to administer the users, you have to undo the ‘Row Owners’ setting from the Users table. This seems like a step backwards (no more fun favorite based filtering!) so, I thought why don’t I just duplicate the Users table and call it ‘User Management’ and then make that tab visible to Admin users only, set up a relationship between the two tables, and then set up a custom action to update both tables upon editing a row in the ‘User Management’ table.

Conceptually it should work, right?

Well, only the User Management table is updating and NOT the User table (that is Row Owner enabled). Here are my tables…

 ![Screen Shot 2022-12-30 at 3.38.20 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/c/1cbb30d68fe99b3ab55d3f22c3291df568529c22.jpeg)

 ![Screen Shot 2022-12-30 at 3.37.44 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/a/fac16da085a96eb53039e741be91308f2a779153.jpeg)

and here’s my custom action…

 ![Screen Shot 2022-12-30 at 3.35.09 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/3/1374b0af22b08838e83ededd6d70e24023cc9a75.png)

 ![Screen Shot 2022-12-30 at 3.35.39 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/2/62eef937c55844873f717ff1568082e59023fb03.jpeg)

 ![Screen Shot 2022-12-30 at 3.35.24 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/f/afe5444b1868d5d27f8849fc79035df92ccfd268.jpeg)

Now, I have made some assumptions that could totally be wrong, like the fact that clicking the ‘Done’ button on the edit form triggers my custom action.

 ![Screen Shot 2022-12-30 at 3.42.00 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/2/d27dd885a2c2f7c8726d4e68301c90ec2b399d1e.png)

Any help or insight would be greatly appreciated!

---

<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: [December 30, 2022, 9:56pm UTC](https://community.glideapps.com/t/attempting-to-update-values-in-two-table-upon-submit-via-a-relation-and-set-column-values-but-so-far-its-a-no-go/56188/2 "2022-12-30T21:56:42Z")

</div>

A table under row ownership means unowned data is not downloaded to a user’s device. You can’t get around it by having a separate table with a relation to the user table.

I think you would be better off getting ride of the user management table and stick with the user table, but add another email column with your email address. That second email column can also be set as a row owner column. So that means the original user as well as yourself will be row owners.

If you are willing to use Role functionality, the the second column could contain be named Admin with a value of ‘Admin’ on every row and be set as a row owner column. Then add a Role column, assign each admin user as ‘Admin’, and set that column as the Role column in the user profile configuration.

---

<div class="post-metadata">

### Author: ![Technoladie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/technoladie/32/52202_2.png) [@Technoladie](https://community.glideapps.com/u/Technoladie)
#### Post date: [December 31, 2022, 12:26am UTC](https://community.glideapps.com/t/attempting-to-update-values-in-two-table-upon-submit-via-a-relation-and-set-column-values-but-so-far-its-a-no-go/56188/3 "2022-12-31T00:26:11Z")

</div>

> [@Jeff\_Hager](#):
>
> I think you would be better off getting ride of the user management table and stick with the user table, but add another email column with your email address. That second email column can also be set as a row owner column. So that means the original user as well as yourself will be row owners.

Ah HA, ok thanks for the blunt clarification on Row Owner (no getting around that, got it!)  
This makes sense to me, thank you!
