# How to add a column type color into dataset in the template's internal property

**URL:** <https://forum.inductiveautomation.com/t/how-to-add-a-column-type-color-into-dataset-in-the-templates-internal-property/36333>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [July 3, 2020, 8:05am UTC](https://forum.inductiveautomation.com/t/how-to-add-a-column-type-color-into-dataset-in-the-templates-internal-property/36333 "2020-07-03T08:05:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manutchaisrichai](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manutchaisrichai](https://forum.inductiveautomation.com/u/manutchaisrichai)\
**Post date:** [July 3, 2020, 8:05am UTC](https://forum.inductiveautomation.com/t/how-to-add-a-column-type-color-into-dataset-in-the-templates-internal-property/36333/1 "2020-07-03T08:05:06Z")

</div>

Dear Expert,

```
     For my practicing about ignition software. I have download a VM demo project from inductiveautomation.com . I have try but cannot figure out how to do the dataset column with type is color. If any one could help me, please see in attached picture for more detail.

```

Best Regard,  
Manutchai

 ![dataset](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/a/2aecdf01b7c1a82bb5484652790baf5c0beeb056.png)

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [July 3, 2020, 2:57pm UTC](https://forum.inductiveautomation.com/t/how-to-add-a-column-type-color-into-dataset-in-the-templates-internal-property/36333/2 "2020-07-03T14:57:19Z")

</div>

There's a few ways to do this, one scripting, one by using a little trick I found with custom properties.

1. 

Easy enough to run a little script to set the column up, then you can add more rows and columns via the gui should you choose to.

You can put the below on a temporary button to fill in the property with the color column

```auto
dataset = system.dataset.toDataSet(['color'],[[system.gui.color(255,255,255)]])
# then set the component property:
pathToComponentProperty = dataset

```

1. 

If you want to do this in a dataset that is a custom property, you can create a color column by default during the creation of the dataset property. Follow these steps:

> a. Go to custom properties on the component you wish to have it on and click the add button.  
> b. Give it a name, and select Color as the type. Do not click OK.  
> c. Set the Type to Dataset and click OK  
> d. Open that dataset up and you'll see the value column default to a Color type. Shown below.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cf1d6d6de878c135ef2171b2f57e13c0a9c3a022.png)

---

<div class="post-metadata">

**Author:** ![manutchaisrichai](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manutchaisrichai](https://forum.inductiveautomation.com/u/manutchaisrichai)\
**Post date:** [July 6, 2020, 4:57am UTC](https://forum.inductiveautomation.com/t/how-to-add-a-column-type-color-into-dataset-in-the-templates-internal-property/36333/3 "2020-07-06T04:57:34Z")

</div>

Dear jonathan.taylor

```
        Thank you!
```
