# Access dataset within UDT tag for template

**URL:** <https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129>\
**Category:** Ignition\
**Created:** [February 10, 2025, 9:30pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129 "2025-02-10T21:30:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [February 10, 2025, 9:30pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129/1 "2025-02-10T21:30:12Z")

</div>

I can't figure out how to access part of a dataset I have within a UDT.

I am creating a template and instead of having a bunch of template parameters to set/write to I figured I would put these parameters into a dataset within the UDT tag itself and then only have to bind the UDT to the template. Within my template I want to bind certain things to the UDT properties including within the dataset. I can get access to the dataset itself but can't figure out how to get access to say column 5 within the dataset.

Here are screenshots of one instance of the UDT...

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/0/60cb7b50e235eacbada6a286808746bae68ac945.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/6656d55a0441c8bb789408afb5b4e05f77a0ce37.png)

Screenshot of start of the template with the template parameter UDTIn

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/e/2e0d6506632674f9ef63083fd57ab37fef0785f4.png)

For example I want to bind the number of decimals for scaled min from a UDT parameter within UDTIn, PopupConfiguration.

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

I tried doing a property binding to the UDTIn property but can't get within the PopupConfiguration dataset.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/11333c8c9f542a0fce91f748aabf86aafc9ad5d4.png)

Do I have to do a different type of binding?

My other thought was just having the tag name be a template parameter and seems like I can get to parts of the dataset that way...

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/4/d42c03186ba825712d6b6ecf7688117c47ac0223.png)

Any way to do it using the UDT property?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 10, 2025, 9:34pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129/2 "2025-02-10T21:34:02Z")

</div>

General tag configuration properties cannot use expressions that reference tag values or other property values. They can only reference UDT parameters (including the built-in UDT params).

Tag **alarm** properties **can** reference other tag values, but are only updated on alarm events--they are **not** general subscriptions.

The only general use of tag references, with ordinary change tracking causing refreshes, is within the expression of an expression tag. Full stop.

What you **can** do is **write** to these tag properties from scripts.

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [February 10, 2025, 9:38pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129/3 "2025-02-10T21:38:27Z")

</div>

Scratch that...doesnt seem to work either

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

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [February 10, 2025, 9:50pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129/4 "2025-02-10T21:50:49Z")

</div>

If I created a template parameter dataset within the template where everytime the template instance was opened the template parameter dataset was populated from the tag dataset itself would I be able to access that from within the template?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 10, 2025, 9:55pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129/5 "2025-02-10T21:55:45Z")

</div>

Not sure how you intend to populate it.

Are you not using a tag path parameter to your template to drive indirect binding within the template? If not, you are screwing up. If you **are** using a tag path, then you can indirect bind to any nested tag and/or tag property within the UDT.

In other words, it seems you are trying to go through your [expletive] to get to your elbow, when you could just touch your elbow. 🤷‍♂️

(If you are trying to display all of this stuff in a table, take a look at the `tags()` function in my Integration Toolkit.)

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [February 10, 2025, 9:58pm UTC](https://forum.inductiveautomation.com/t/access-dataset-within-udt-tag-for-template/102129/6 "2025-02-10T21:58:16Z")

</div>

Right. That was my next attempt. Do an indirect tag binding with the template parameter coming in as a string to complete the tag path. I do seem to be able to get to the parameters that way.
