# How to keep a reference of other DataTable in a DataTable?

**URL:** <https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187>\
**Category:** Community & Industry Discussion\
**Tags:** datatable, unreal-engine, question\
**Created:** [February 26, 2015, 7:16am UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187 "2015-02-26T07:16:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kuafu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kuafu](https://forums.unrealengine.com/u/Kuafu)\
**Post date:** [February 26, 2015, 7:16am UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/1 "2015-02-26T07:16:02Z")

</div>

How to keep a reference of other DataTable in a DataTable? I can reference a texture type stored in the DataTable, but I could not reference a DataTable type, because no DataTable was found in the structure defination.

* * *

**Struct**

UserDefinedStruct’/Game/table/LevelStageStruct.LevelStageStruct’

LevelName…String

LevelScript…?(Should be DataTable)

Image…Texture

* * *

**Cvs table:**

Name,LevelName,Level,Image

Level1,text1,DataTable’/Game/Script/Level1.Level1’,Texture2D’/Game/Img01.Img01’

Level2,text2,DataTable’/Game/Script/Level2.Level2’,Texture2D’/Game/Img02.Img02’

* * *

Every thing is fine,except I can’t get reference to the DataTable type “Level”.  
How can I do this?

---

<div class="post-metadata">

**Author:** ![Kuafu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kuafu](https://forums.unrealengine.com/u/Kuafu)\
**Post date:** [February 26, 2015, 8:09am UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/2 "2015-02-26T08:09:52Z")

</div>

Since I can’t reference a DataTable in a DataTable,I have to do it like this:

 ![31239-img_02_26_001.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/6/a36039e4f541537f61ad0b18546c55e65474b4cb.png)

But when it comes to a large number of tables. It is very difficult.

---

<div class="post-metadata">

**Author:** ![Kuafu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kuafu](https://forums.unrealengine.com/u/Kuafu)\
**Post date:** [February 28, 2015, 4:43pm UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/3 "2015-02-28T16:43:53Z")

</div>

[Request] Data Table variable type

> **[\[Request\] Data Table variable type](https://forums.unrealengine.com/questions/102848/request-data-table-variable-type.html)**
>
> I’m currently working on a dialogue system and I thought it would be great to try Data Tables since the parsing is built in to UE4. The problem I am encountering is that there is no way to dynamically change the Data Table that is used by the Get...

* * *

This maybe help。

---

<div class="post-metadata">

**Author:** ![Omnillusion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omnillusion](https://forums.unrealengine.com/u/Omnillusion)\
**Post date:** [June 12, 2017, 4:57pm UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/4 "2017-06-12T16:57:07Z")

</div>

nope doesn’t. The DT Variable can not be referenced by a Data Table Row’s input.

---

<div class="post-metadata">

**Author:** ![alperenakyuz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alperenakyuz](https://forums.unrealengine.com/u/alperenakyuz)\
**Post date:** [June 13, 2017, 2:03pm UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/5 "2017-06-13T14:03:49Z")

</div>

I don’t think you can rerence data tables to create variables.

---

<div class="post-metadata">

**Author:** ![MonstroGlaz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monstroglaz/32/88716_2.png) [@MonstroGlaz](https://forums.unrealengine.com/u/MonstroGlaz)\
**Post date:** [April 17, 2024, 8:30pm UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/6 "2024-04-17T20:30:04Z")

</div>

Heloo there!  
I found how to

1. Change your datatable field type from object reference  
 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/9/5a9d841727d8a45336fb060648b61295214e8da8.png)
2. When you use this field to get another datatable use “Resolve soft Reference”  
 ![2024-04-17_23-24-10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/9/bc92a44d8bfe2fb8751c9152b5fcccb826d4347e.png)  
after that just do get datatablerow.  
Enjoy.

---

<div class="post-metadata">

**Author:** ![onemaingun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@onemaingun](https://forums.unrealengine.com/u/onemaingun)\
**Post date:** [January 18, 2025, 4:20am UTC](https://forums.unrealengine.com/t/how-to-keep-a-reference-of-other-datatable-in-a-datatable/308187/7 "2025-01-18T04:20:34Z")

</div>

Very old post, but I am working on something similar where base stats and class stats are added together.

 ![UpdateStats](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/3/653fa76c749f723f84120844a7318133c920bdfc.png)

I need to work through this.

I have to use two switches, what is the node after your integer?

Thank you.
