# \[Request\] Data Table variable type

**URL:** <https://forums.unrealengine.com/t/request-data-table-variable-type/294353>\
**Category:** Blueprint\
**Tags:** csv, unreal-engine, FeatureRequest, request, question, Blueprint\
**Created:** [September 22, 2014, 9:00pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353 "2014-09-22T21:00:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spade](https://forums.unrealengine.com/u/Spade)\
**Post date:** [September 22, 2014, 9:00pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/1 "2014-09-22T21:00:12Z")

</div>

I’m currently working on a dialogue system and I thought it would be great to try Data Tables since parsing is built in to UE4. problem I am encountering is that there is no way to dynamically change Data Table that is used by Get Data Table Row node in Blueprints. I would like to dynamically assign Data Tables so I can easily manage my dialogue. Having 1 CSV for entire game’s script would be very difficult to maintain.

It would be nice to have Data table variable type or some other method so I can dynamically assign Data Tables.

(no option to Promote to Variable)

 ![15927-datatablefeaturerequest.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/e/e8ed8e8fd6eaead9eef48bf14466a4bbf09e364b.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [September 26, 2014, 7:36pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/2 "2014-09-26T19:36:20Z")

</div>

Hey Spade,

I have entered a feature request in our database for developers to consider. Thanks for feedback!

---

<div class="post-metadata">

**Author:** ![Joachim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joachim](https://forums.unrealengine.com/u/Joachim)\
**Post date:** [July 7, 2015, 4:39am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/3 "2015-07-07T04:39:04Z")

</div>

Hi ,  
is there any news on DataTable-variable / dynamic DataTables front?

I’ve built a very nice dialogue system over last few months but I am a bit stuck with using a single gigantic table for whole game.

It would be great if this request could be prioritised a bit higher - There are quite a few people having this issue, scattered across forum.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Joachim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joachim](https://forums.unrealengine.com/u/Joachim)\
**Post date:** [July 7, 2015, 4:41am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/4 "2015-07-07T04:41:06Z")

</div>

Hi Spade,

did you find a workaround for this problem?  
I’m having exact same difficulty.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 8, 2015, 7:59pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/5 "2015-07-08T19:59:25Z")

</div>

Hi Joachim,

No update on this yet. I’ve upped community interest on request (UE-2847) and I’ll post here if it’s implemented at any point.

You mention there’s a number of people requesting this; can you point me to any links you’ve found to verify, so I can include them with request? Thanks!

Update: moved to UE-23282

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_07ba773b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_07ba773b](https://forums.unrealengine.com/u/anonymous_user_07ba773b)\
**Post date:** [August 1, 2015, 11:05am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/6 "2015-08-01T11:05:28Z")

</div>

I also need this feature!

---

<div class="post-metadata">

**Author:** ![Nobody](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nobody/32/1059620_2.png) [@Nobody](https://forums.unrealengine.com/u/Nobody)\
**Post date:** [August 8, 2015, 11:34am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/7 "2015-08-08T11:34:17Z")

</div>

> **[How to keep a reference of other DataTable in a DataTable?](https://forums.unrealengine.com/questions/178556/how-to-keep-a-reference-of-other-datatable-in-a-da.html)**
>
> 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 ...

> **[Cannot set up Datatable var in Blueprint](https://forums.unrealengine.com/questions/257986/cannot-set-up-datatable-var-in-blueprint.html)**
>
> I am setting up an item system for which I am using datatables to store the data. Right now, I am trying to use that item system to have a blueprint staticmeshactor class detect whether the player is carrying specific items and to perform an action...

Just found these. I also urgently need this feature in near future. So have DataTable Variables and be able to also store them inside other Datatables. Really important feature.

---

<div class="post-metadata">

**Author:** ![Begounet](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Begounet](https://forums.unrealengine.com/u/Begounet)\
**Post date:** [August 11, 2015, 9:11am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/8 "2015-08-11T09:11:26Z")

</div>

For now, you can use some C++ to load dynamically table.  
You will have something like this :

```
m_dataTable = StaticLoadObject(UDataTable::StaticClass(), NULL, path);

```

With ‘path’ something like ‘/Game/DataTable/MyDataTable’.  
Once it’s done, you can access datas with GetTableData() function.  
It will give you an array of an array of string. Since you cannot use that in your blueprint directly, you just have to create a function to get a specific row. It should be something like that :

TArray UDynamicDataTableLoader::GetRowDatas(const FName& rowName)  
{  
FArray\<FArray\> datas = m\_datatable-\>GetTableData();

```
 // Stuff to find row

return (datas[row]); // or TArray<FString>() if not found
}

```

So now, you can access your datas but you will have everything as a string. I recommend you to create a blueprint that will ‘parse’ and represent row by getting string datas and give access to typed variable.

Sorry but I don’t have time to make it a plugin. If you have some question, do not hesitate !

Good luck !

---

<div class="post-metadata">

**Author:** ![GHost\_AD7](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ghost_ad7/32/750969_2.png) [@GHost\_AD7](https://forums.unrealengine.com/u/GHost_AD7)\
**Post date:** [August 11, 2015, 2:01pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/9 "2015-08-11T14:01:32Z")

</div>

i need this too

---

<div class="post-metadata">

**Author:** ![Hejden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hejden](https://forums.unrealengine.com/u/Hejden)\
**Post date:** [October 27, 2015, 3:02pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/10 "2015-10-27T15:02:08Z")

</div>

I also need this!

---

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [November 3, 2015, 2:02pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/11 "2015-11-03T14:02:43Z")

</div>

look like i need this too :o

---

<div class="post-metadata">

**Author:** ![windkey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@windkey](https://forums.unrealengine.com/u/windkey)\
**Post date:** [November 9, 2015, 7:27am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/12 "2015-11-09T07:27:47Z")

</div>

It’s important for me, please.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d3b8d33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d3b8d33](https://forums.unrealengine.com/u/anonymous_user_8d3b8d33)\
**Post date:** [January 10, 2016, 5:17pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/13 "2016-01-10T17:17:26Z")

</div>

Same here. Could definitely benefit from this.

---

<div class="post-metadata">

**Author:** ![RussEarwaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RussEarwaker](https://forums.unrealengine.com/u/RussEarwaker)\
**Post date:** [February 10, 2016, 9:50pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/14 "2016-02-10T21:50:43Z")

</div>

Would love to see this

---

<div class="post-metadata">

**Author:** ![Ollinator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ollinator](https://forums.unrealengine.com/u/Ollinator)\
**Post date:** [February 13, 2016, 12:49pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/15 "2016-02-13T12:49:50Z")

</div>

i have to add my voice as well 🙂

there’s even more people in forums:

> **[DataTable Variable Type](https://forums.unrealengine.com/showthread.php?72349-DataTable-Variable-Type)**
>
> Greetings. I’m currently working with a large number of DataTables, being able to store and access DataTables in variables would make life a lot easier in Blueprint. I’ve seen people request the feature once or twice before and just want in inquire...

> **[Data Tables as variable in Blueprint](https://forums.unrealengine.com/showthread.php?78797-Data-Tables-as-variable-in-Blueprint)**
>
> (Apologies if this has already been posted here, I couldn’t find it by searching) I would like to be able to access a data table as a variable in Blueprint, in order to be able to dynamically set the specific Data Table It currently seems (unless I...

and more…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e0ac47fb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e0ac47fb](https://forums.unrealengine.com/u/anonymous_user_e0ac47fb)\
**Post date:** [February 15, 2016, 4:35pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/16 "2016-02-15T16:35:03Z")

</div>

Me too!!! Working on “off-line” language learning apps with huge amounts of data with multiple dialects!!!

---

<div class="post-metadata">

**Author:** ![JoystickMonkey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoystickMonkey](https://forums.unrealengine.com/u/JoystickMonkey)\
**Post date:** [February 18, 2016, 8:40pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/17 "2016-02-18T20:40:17Z")

</div>

I need this exact thing. Data driven systems can really benefit from this functionality.

---

<div class="post-metadata">

**Author:** ![TBS\_Aurel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TBS\_Aurel](https://forums.unrealengine.com/u/TBS_Aurel)\
**Post date:** [March 14, 2016, 7:01pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/18 "2016-03-14T19:01:08Z")

</div>

It has been one year and a half. Nothing new about such a feature? It would be more than useful, it would be a life and time saver. Thanks!

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 14, 2016, 7:07pm UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/19 "2016-03-14T19:07:17Z")

</div>

There is currently no update on this issue at this time. Our developers are currently focusing their efforts on crash and showstopper bugs. However, I will continue to provide updates as they become available.

Have a great day

---

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [April 26, 2016, 12:15am UTC](https://forums.unrealengine.com/t/request-data-table-variable-type/294353/20 "2016-04-26T00:15:16Z")

</div>

changing a DataTable variable at runtime would change its struct type, which would break any connections that output node was connected to.

if you want to break up your games dialogue script into separate databases,  
you could just place dialogue data directly into level actors, like NPCs or signs. or you could make a dialogue actor that you spawn whenever you start a conversation or enter a cutscene, and that actor can contain all of dialogue needed for that conversation.

or if you want to use data tables for dialogue, and you want many writers working on separate spread sheets, you could always merge those spreadsheets in open office, to produce final spreadsheet that UE4 uses.

[Next page](https://forums.unrealengine.com/t/request-data-table-variable-type/294353.md?page=2)
