# Table inside of a canvas to refer to the row where the canvas lives

**URL:** <https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275>\
**Category:** Ask the Community\
**Created:** [June 5, 2022, 2:23pm UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275 "2022-06-05T14:23:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chen\_Zhong](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/chen_zhong/32/28822_2.png) [@Chen\_Zhong](https://connect.superhuman.com/u/Chen_Zhong)\
**Post date:** [June 5, 2022, 2:23pm UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/1 "2022-06-05T14:23:47Z")

</div>

Hi

I’m playing around with the canvas a bit and I trying to do the following:

1. Table A has a canvas column, and another column X
2. Inside of the canvas, there is a table B

Now inside of Table B, is there anyways to refer to the **row** in table A where this specific instance of table B lives, and be able to refer to **thisRow.column X**?

---

<div class="post-metadata">

**Author:** ![Ed\_Wei](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ed_wei/32/27312_2.png) [@Ed\_Wei](https://connect.superhuman.com/u/Ed_Wei)\
**Post date:** [June 5, 2022, 2:26pm UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/2 "2022-06-05T14:26:25Z")

</div>

I created a named formula in the canvas that pointed to the parent row’s column and then referenced it from the table. This is because thisRow in the table refers to the canvas table and not the parent table. parentRow did not work in this scenario.

If you set things up this way, you can also keep around a templated canvas like in the following example. It’s a hack and it is not pretty but it works:

> [@How do I maintain a template for a "Value for New Row" canvas column that references items in the parent table?](https://connect.superhuman.com/t/how-do-i-maintain-a-template-for-a-value-for-new-row-canvas-column-that-references-items-in-the-parent-table/31069):
>
> How do I maintain a template for a “Value for New Row” canvas column that references items in the parent table? I demonstrate how I can accomplish this in the table below, but this is hacky: I have a broken formula in the page “Template For New Row Embed”.

---

<div class="post-metadata">

**Author:** ![Chen\_Zhong](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/chen_zhong/32/28822_2.png) [@Chen\_Zhong](https://connect.superhuman.com/u/Chen_Zhong)\
**Post date:** [June 5, 2022, 2:30pm UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/3 "2022-06-05T14:30:42Z")

</div>

ah, a nice hack though, Basically turning parent row parameters into text.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Max\_OBrien](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/max_obrien/32/49285_2.png) [@Max\_OBrien](https://connect.superhuman.com/u/Max_OBrien)\
**Post date:** [June 5, 2022, 3:14pm UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/4 "2022-06-05T15:14:10Z")

</div>

i love it !  
very clever

---

<div class="post-metadata">

**Author:** ![Hamish\_Mcgregor](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/hamish_mcgregor/32/27392_2.png) [@Hamish\_Mcgregor](https://connect.superhuman.com/u/Hamish_Mcgregor)\
**Post date:** [July 31, 2022, 7:47am UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/5 "2022-07-31T07:47:28Z")

</div>

Hi Ed, I have been trying to replicate. Can you share the formula you used in the page?  
I have tried thisrow.name and parentrow.name.  
Thx

---

<div class="post-metadata">

**Author:** ![Ed\_Wei](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ed_wei/32/27312_2.png) [@Ed\_Wei](https://connect.superhuman.com/u/Ed_Wei)\
**Post date:** [August 12, 2022, 1:55am UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/6 "2022-08-12T01:55:46Z")

</div>

The trick is to build a canvas column with working formulas that reference the table columns you need. Then copy and paste that column value into its own “template” page which will have broken formulas. Then set the value for new row to be that “template” page.

I would not recommend doing things this way. I’ve moved away from using canvas columns with formulas because it is a hack that I’m not sure will always be supported in Coda.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/system/32/24484_2.png) [@system](https://connect.superhuman.com/u/system)\
**Post date:** [November 10, 2022, 1:56am UTC](https://connect.superhuman.com/t/table-inside-of-a-canvas-to-refer-to-the-row-where-the-canvas-lives/31275/7 "2022-11-10T01:56:31Z")

</div>

Closed on November 10, 2022, 1:56am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
