# Converting an array to a usable dataset

**URL:** <https://forum.inductiveautomation.com/t/converting-an-array-to-a-usable-dataset/79167>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [September 14, 2023, 3:44pm UTC](https://forum.inductiveautomation.com/t/converting-an-array-to-a-usable-dataset/79167 "2023-09-14T15:44:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.cobbs](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@t.cobbs](https://forum.inductiveautomation.com/u/t.cobbs)\
**Post date:** [September 14, 2023, 3:44pm UTC](https://forum.inductiveautomation.com/t/converting-an-array-to-a-usable-dataset/79167/1 "2023-09-14T15:44:43Z")

</div>

Good Morning Community,

I have an array output, but I can't seem to figure out how to convert that into a dataset that can be used in a standard vision table. Any assistance would be greatly appreciated.  
Ignition v: 8.1.25

CORRECTION: it is not an array it is actually a list of lists, not all values are the same data type, some string some int.

---

<div class="post-metadata">

**Author:** ![rbanaszak](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbanaszak/32/6929_2.png) [@rbanaszak](https://forum.inductiveautomation.com/u/rbanaszak)\
**Post date:** [September 14, 2023, 3:55pm UTC](https://forum.inductiveautomation.com/t/converting-an-array-to-a-usable-dataset/79167/2 "2023-09-14T15:55:35Z")

</div>

Without seeing the actual data you are using, you may have to use a for loop and run through your lists of lists and create a new array of lists and then convert to a dataset. Otherwise I would first try using this:  
[https://docs.inductiveautomation.com/display/DOC81/system.dataset.toDataSet](https://docs.inductiveautomation.com/display/DOC81/system.dataset.toDataSet)  
and seeing where it gets you. Once your able to use toDataSet, you should be able to bind it to the table.

---

<div class="post-metadata">

**Author:** ![t.cobbs](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@t.cobbs](https://forum.inductiveautomation.com/u/t.cobbs)\
**Post date:** [September 14, 2023, 4:47pm UTC](https://forum.inductiveautomation.com/t/converting-an-array-to-a-usable-dataset/79167/3 "2023-09-14T16:47:39Z")

</div>

Thanks, I will try that out!
