# DataSet Parameter in Java

**URL:** <https://forum.inductiveautomation.com/t/dataset-parameter-in-java/9817>\
**Category:** 3rd Party Modules\
**Created:** [March 18, 2015, 5:43pm UTC](https://forum.inductiveautomation.com/t/dataset-parameter-in-java/9817 "2015-03-18T17:43:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnaram](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@adnaram](https://forum.inductiveautomation.com/u/adnaram)\
**Post date:** [March 18, 2015, 5:43pm UTC](https://forum.inductiveautomation.com/t/dataset-parameter-in-java/9817/1 "2015-03-18T17:43:20Z")

</div>

Hello, i want to add a “DataSet” parameter inside my component. I didn’t know wich type of variable I need to declare for the “DataSet” in my java class. By exemple, their is a DataSet parameter in the Pie Chart object of Ignition Designer.

I’m adding the parameter with :

[code]public [Type of Variable] Data;  
getData()  
setData(…)

…  
addProp(“data”, “Data”, “”, CAT\_DATA); //into CommonBeanInfo[/code]  
Thanks !

---

<div class="post-metadata">

**Author:** ![ssmith](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@ssmith](https://forum.inductiveautomation.com/u/ssmith)\
**Post date:** [March 18, 2015, 8:37pm UTC](https://forum.inductiveautomation.com/t/dataset-parameter-in-java/9817/2 "2015-03-18T20:37:21Z")

</div>

The datatype is just called Dataset. Just use:

```auto
import com.inductiveautomation.ignition.common.Dataset;
```

---

<div class="post-metadata">

**Author:** ![adnaram](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@adnaram](https://forum.inductiveautomation.com/u/adnaram)\
**Post date:** [March 27, 2015, 3:19pm UTC](https://forum.inductiveautomation.com/t/dataset-parameter-in-java/9817/3 "2015-03-27T15:19:17Z")

</div>

It works, thanks
