# Creating an in another table

**URL:** <https://community.glideapps.com/t/creating-an-in-another-table/69330>\
**Category:** Ask for Help\
**Created:** [January 7, 2024, 3:57pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330 "2024-01-07T15:57:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 3:57pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/1 "2024-01-07T15:57:16Z")

</div>

Please view the video:

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/1/01c2643e2a9e1212fa864063487155b2122f550f.jpeg "An Action In Another Table") ](https://www.youtube.com/watch?v=2-VF2RaoAfE)

Thanks

---

<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:** [January 7, 2024, 4:26pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/2 "2024-01-07T16:26:33Z")

</div>

As you noticed, actions are linked to the table. So to perform a Set Column action on the account table from a screen attached to the operation table, you need to create a single relation linking the operation table to the correct row in the account table. The you can perform a Set Column action through the single relation.

Since it looks like you are moving the value from one column to another in the same table, you may also need to create a lookup column in the operation table that first retrieves the single value column from the relation to the account table, and then that will be what you use in the action.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 4:46pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/3 "2024-01-07T16:46:36Z")

</div>

Wow, I was hoping this system’s power would be much more straightforward than this. In other words, I was hoping the power Glide would allow the creation of an action from place in the system. However, that is not possible.

If I am not asking too much, please give me a brief demo of your first paragraph. Thanks.

---

<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:** [January 7, 2024, 4:54pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/4 "2024-01-07T16:54:40Z")

</div>

If you think about it, Glide has to know which row you want to update. The way you were trying to set it up meant that you were just choosing the Account table. How would you indicate which row to update in that table? That’s the purpose of creating a single relation, so you can direct an action from the current row you are on in the operation table to a specific row in the account table.

Might be easier to talk through this back and forth. My first question is, does your account table always have one row, or can it have multiple rows where each can somehow be linked with the specific operation you are viewing?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 5:08pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/5 "2024-01-07T17:08:44Z")

</div>

Does that mean I would may have to insert a row in both tables with matching data?

---

<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:** [January 7, 2024, 5:14pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/6 "2024-01-07T17:14:20Z")

</div>

I’m just asking to help me understand how your data is set up. That will determine how we proceed. Will the Accounts table ever have more than one row?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 5:18pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/7 "2024-01-07T17:18:11Z")

</div>

Well, the relation I made between the two tables would be the current date. Now that gives me one row in the Account table and several rows in the Operating table. My goal is to simply update the ending balance in the Account table to the Beginning Balance. The action does work but I would like to use one screen to do this.

The other question is how would I know the two tables are linked?

---

<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:** [January 7, 2024, 5:23pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/8 "2024-01-07T17:23:05Z")

</div>

A relation or query creates a link. If a relation or query is not empty then you know there is a link, but lets not jump ahead yet. You still haven’t really answered my question. Will the Accounts table EVER have more than one row? I’m not worried about linking stuff up yet or updating data. I just simply want to know if that table can ever have additional rows added to it in the future.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 5:24pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/9 "2024-01-07T17:24:35Z")

</div>

I am sorry. The answer to your question is no. The Account table is designed to have one row.

---

<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:** [January 7, 2024, 5:30pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/10 "2024-01-07T17:30:00Z")

</div>

Ok, that helps to simplify things. You won’t need to create a relation.

- First create a Single Value column in the Operation table, point it to the Account table and select ‘Whole Row’ instead of an individual column. This is essentially the same as creating a single relation without the need to specific which columns need to match in each table.
- Once you have that single value column set up, create a Lookup column that will retrieve the ‘Curr Bal OP’ column from the Single Value → Whole Row column you created above.

Now you should have a link in the operations table to the accounts table and you should have the current balance brought into the operations table.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 5:33pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/11 "2024-01-07T17:33:10Z")

</div>

Okay. Hmmmmmmm, allow me to study this logic first.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 5:43pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/12 "2024-01-07T17:43:33Z")

</div>

Now, let’s go back to the Button on a screen pointing to the Operating Table. How do I create an action on that screen that will point to the Account table?

---

<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:** [January 7, 2024, 5:46pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/13 "2024-01-07T17:46:02Z")

</div>

Now you should be able to create a new action for that button that will still be linked to the Operation table. When you add the Set Column action, you should now be able to choose the ‘Single Value → Whole Row’ column as the row source instead of ‘This Item’.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 6:07pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/14 "2024-01-07T18:07:51Z")

</div>

Another video. I hate to bother you.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/9/8988b65c5d43e285bc3099857143c7551e5d4fbc.jpeg "Actions in a Table") ](https://www.youtube.com/watch?v=RQVirDN2lLg)

---

<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:** [January 7, 2024, 6:17pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/15 "2024-01-07T18:17:22Z")

</div>

You are really close. You are doing everything correctly, but you missed one step. Your Lookup column needs to pull the value from ‘New Column H’, so it will be a single value. You are still pulling from the entire Accounts table, so it ends up being a lookup array. Arrays cannot be placed in something that can only hold a single value.

Fix that lookup column and everything else should work out.

(No worries about bothering me. The videos are helping immensely)

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 6:32pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/16 "2024-01-07T18:32:00Z")

</div>

Is this correct?

![Jeff](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/1/a1ca1810bb4cf7902de387c33ae6a3342eab84e4.jpeg)

---

<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:** [January 7, 2024, 6:42pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/17 "2024-01-07T18:42:45Z")

</div>

No, you should be using New Column H directly. You are trying to get to it through a relation. You are already in the operations table, so you don’t need a relation or anything special to get to column H. It’s right there in the same table.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 6:53pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/18 "2024-01-07T18:53:48Z")

</div>

For now I am going to take a little break.

---

<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:** [January 7, 2024, 7:05pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/19 "2024-01-07T19:05:22Z")

</div>

Rather than you Lookup column showing `Relation -> Column H` it should be showing `Column H -> Curr Bal OP`. Sorry, I wasn’t clear on that.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Strickland](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/benjamin_strickland/32/68255_2.png) [@Benjamin\_Strickland](https://community.glideapps.com/u/Benjamin_Strickland)\
**Post date:** [January 7, 2024, 7:23pm UTC](https://community.glideapps.com/t/creating-an-in-another-table/69330/20 "2024-01-07T19:23:09Z")

</div>

Jeff, if I do not get this figured out, I am going to see how I can use two different screens to achieve what I am looking for. No offense to you but this should not be this involved just to do an update. My action works but I have to do it on two different screens. This would confuse a user. I am going to hang in there. Thanks.

[Next page](https://community.glideapps.com/t/creating-an-in-another-table/69330.md?page=2)
