# Dataset object / alpha element of "clr" datatype

**URL:** <https://forum.inductiveautomation.com/t/dataset-object-alpha-element-of-clr-datatype/12784>\
**Category:** Ignition\
**Created:** [March 13, 2017, 8:22pm UTC](https://forum.inductiveautomation.com/t/dataset-object-alpha-element-of-clr-datatype/12784 "2017-03-13T20:22:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffkrol](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeffkrol/32/3339_2.png) [@jeffkrol](https://forum.inductiveautomation.com/u/jeffkrol)\
**Post date:** [March 13, 2017, 8:22pm UTC](https://forum.inductiveautomation.com/t/dataset-object-alpha-element-of-clr-datatype/12784/1 "2017-03-13T20:22:03Z")

</div>

Howdy,

I have a fairly basic Dataset object that I am using to store an integer, a few strings and some colors. I have the color objects stored in the Dataset as type “clr”. Whenever I manually paste values or use the color wheel to select a value, any value for alpha besides 255 gets changed backed to 255 once I hit “Apply” in the Tag Editor. Any reason for this or am I just making a really dumb mistake here?

This Dataset isn’t bound to an object. It’s being used via script to generate a Styles Dataset to be bound for our custom template objects.

Thanks.

---

<div class="post-metadata">

**Author:** ![adam.morales](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/adam.morales/32/3405_2.png) [@adam.morales](https://forum.inductiveautomation.com/u/adam.morales)\
**Post date:** [March 13, 2017, 11:53pm UTC](https://forum.inductiveautomation.com/t/dataset-object-alpha-element-of-clr-datatype/12784/2 "2017-03-13T23:53:06Z")

</div>

I can’t think of a good reason for this to be happening, so it could be a bug. I will speak to our developers about it.

As a workaround, you can use a script to write a dataset which includes a color with transparency to the tag.

---

<div class="post-metadata">

**Author:** ![jeffkrol](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeffkrol/32/3339_2.png) [@jeffkrol](https://forum.inductiveautomation.com/u/jeffkrol)\
**Post date:** [March 15, 2017, 4:37pm UTC](https://forum.inductiveautomation.com/t/dataset-object-alpha-element-of-clr-datatype/12784/3 "2017-03-15T16:37:36Z")

</div>

[quote=“adam.morales”]I can’t think of a good reason for this to be happening, so it could be a bug. I will speak to our developers about it.

As a workaround, you can use a script to write a dataset which includes a color with transparency to the tag.[/quote]

Adam,

Thanks for the quick reply! I ended up using the scripting method like you mentioned and that is correctly retaining the transparency value for my Dataset. Thanks for looking into this.
