# Alarm Filter for UDT for alarm status

**URL:** <https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [May 27, 2020, 6:30pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096 "2020-05-27T18:30:36Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [May 27, 2020, 6:30pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/1 "2020-05-27T18:30:36Z")

</div>

I presently have a UDT created for my Dynamic drives in our company and thus Parameters passed to a device page’s popup., I created various Alarms on the drive UDT want to view the alarm per device when it is clicked on for the alarm status. At the moment, All the alarm are listed and not the alarm related to the device on the page popup

Does anyone have the best approach in setting it up properly? Well appreciated

---

<div class="post-metadata">

**Author:** ![ijustdunnoaname1](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ijustdunnoaname1](https://forum.inductiveautomation.com/u/ijustdunnoaname1)\
**Post date:** [May 27, 2020, 6:56pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/2 "2020-05-27T18:56:55Z")

</div>

Within your UDT, create a string memory tag which references {PathToParentFolder}.

On the popup’s alarm status table, bind the “Source Filter” with an expression such as:  
“_" + {Root Container.FOLDERNAME::PathtoParent} + "/_”

This will only display alarms for that machine’s popup.

---

<div class="post-metadata">

**Author:** ![ijustdunnoaname1](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ijustdunnoaname1](https://forum.inductiveautomation.com/u/ijustdunnoaname1)\
**Post date:** [May 27, 2020, 6:58pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/3 "2020-05-27T18:58:17Z")

</div>

Use an asterisk in the fist set of quotations and after the / within the last set of quotations.

---

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [May 27, 2020, 7:17pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/4 "2020-05-27T19:17:23Z")

</div>

> [@ijustdunnoaname1](#):
>
> On the popup’s alarm status table, bind the “Source Filter” with an expression such as:  
> “ _" + {Root Container.FOLDERNAME::PathtoParent} + "/_ ”
> 
> This will only display alarms for that machine’s popup.

Thanks for your response, I have completed the first line of statement and having issues completing the following:

On the popup’s alarm status table, bind the “Source Filter” with an expression such as:  
“ _" + {Root Container.FOLDERNAME::PathtoParent} + "/_ ”

This will only display alarms for that machine’s popup.

Please can you breakdown the step required. Thanks

---

<div class="post-metadata">

**Author:** ![ijustdunnoaname1](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ijustdunnoaname1](https://forum.inductiveautomation.com/u/ijustdunnoaname1)\
**Post date:** [May 27, 2020, 7:27pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/5 "2020-05-27T19:27:39Z")

</div>

When I wrote my original response, I wasn’t aware that asterisks wouldn’t show up, so I’ll use [wildcard] in my examples instead.

In my example, I named the string memory tag “PathtoParent”

In the alarm status table that’s located on your parameterized popup, bind its “Source Filter” with an expression:

" [wildcard] " + Insert the tagpath to your referenced UDT PathtoParent tag here + " / [wildcard] "

Substitute an asterisk anywhere I’ve used [wildcard]

---

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [May 27, 2020, 7:41pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/6 "2020-05-27T19:41:21Z")

</div>

Not working, here is the command I ran:  
“_" + {Root Container.Bind::PathtoParent} + "/_”

However, I created a parameter in the popup page which has the alarm status as ‘Bind for the name’ and the type as drives (UDT). I went to the source filter and enter the above command. Right now, I am having all the alarms with no filtering. Is there something, I am doing wrong, Thanks for the help.

---

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [May 27, 2020, 7:45pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/7 "2020-05-27T19:45:01Z")

</div>

> [@idioknna](#):
>
> Not working, here is the command I ran:  
> “ _" + {Root Container.Bind::PathtoParent} + "/_ ”
> 
> However, I created a parameter in the popup page which has the alarm status as ‘Bind for the name’ and the type as drives (UDT). I went to the source filter and enter the above command. Right now, I am having all the alarms with no filtering. Is there something, I am doing wrong, Thanks for the help

Not working, here is the command I ran:  
“ _" + {Root Container.Bind::PathtoParent} + "/_ ”

However, I created a parameter in the popup page which has the alarm status as ‘Bind for the name’ and the type as drives (UDT). I went to the source filter and enter the above command. Right now, I am having all the alarms with no filtering. Is there something, I am doing wrong, Thanks for the help

---

<div class="post-metadata">

**Author:** ![ijustdunnoaname1](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ijustdunnoaname1](https://forum.inductiveautomation.com/u/ijustdunnoaname1)\
**Post date:** [May 27, 2020, 8:02pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/8 "2020-05-27T20:02:14Z")

</div>

Inside of the UDT, add a separate member titled “PathtoParent”. Make that member a memory string tag. In my example, I’m using an actual tag created within the UDT.

Verify this tag is reading properly.

If you’re passing your UDT into the popup as a property, just reference the new pathtoparent tag as follows: (substitute your actual path)

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

---

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [May 27, 2020, 8:26pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/9 "2020-05-27T20:26:41Z")

</div>

Hi there thanks for the help,

however, it does not work either…

passed the parameter of the number on binding source filter as below:  
“_" + {Root Container.drives} + "/_”  
and then on the display filter used:,

_drives_ to filter. Thanks.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 27, 2020, 8:41pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/10 "2020-05-27T20:41:21Z")

</div>

Firstly, to show an asterisk, or any formatting for that matter, include your code within preformatted text characters `` e.g  
`'*' + {Root Container.DeviceTagPath} + '/*' `

Secondly, how are you opening your device page/popup? Do you pass the path to the device and its name, or do you use a UDTType parameter? If it’s the latter, you’re on your own as I have stayed clear of these for years. If it’s the former, then you should just be able to use the above expression.  
There was a bug in v7.9.5, where in the alarm source field you had to include a prefix:  
`'*:/tag:*' + {Root Container.DeviceTagPath} + '/*' `  
From memory, will check when at laptop.

Also, I’m assuming that you’re creating a binding expression for the source filter, and not just copying that as text into the source filter text?

---

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [June 2, 2020, 1:31pm UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/11 "2020-06-02T13:31:01Z")

</div>

Thanks All for its worked

---

<div class="post-metadata">

**Author:** ![santoshb189](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshb189](https://forum.inductiveautomation.com/u/santoshb189)\
**Post date:** [November 18, 2020, 12:34am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/12 "2020-11-18T00:34:57Z")

</div>

Hi, I am also trying to have alarms of a single machine in the popup. I have created custom String property in the pop up and have ‘_’ + {Root Container.TagPath} + '/_’ as the expression in the source filter for alarm status table. But still table is displaying all the machine alarms. Can you please tell me where I am going wrong?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 18, 2020, 12:58am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/13 "2020-11-18T00:58:16Z")

</div>

Can you copy and paste the resulting value that's now in your source filter field?  
Also, you need to include asterisks as wildcards otherwise it will match (or it _should_ match) your filter exactly.

E.g. your resulting field value should be something like:  
`*Machine1/Drive Motor/Current/*`

Also and importantly, what version are you running? as there was a bug in version 7.9.5 where you had to include a prefix as well (further up in this topic)

> [@Alarm Filter for UDT for alarm status](http://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/10):
>
> Firstly, to show an asterisk, or any formatting for that matter, include your code within preformatted text characters `` e.g '\*' + {Root Container.DeviceTagPath} + '/\*' Secondly, how are you opening your device page/popup? Do you pass the path to the device and its name, or do you use a UDTType parameter? If it’s the latter, you’re on your own as I have stayed clear of these for years. If it’s the former, then you should just be able to use the above expression. There was a bug in v7.9.5, w…

---

<div class="post-metadata">

**Author:** ![santoshb189](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshb189](https://forum.inductiveautomation.com/u/santoshb189)\
**Post date:** [November 18, 2020, 1:16am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/14 "2020-11-18T01:16:01Z")

</div>

This is the expression in source filter: ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/4/c4e70f1760fab19bdb70ed097614dd1c38e8bc0b.png)  
and source filter value is ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/00648c144c5636091f6428ad5a45c7458585fdef.png) . I am using version 8.0.15

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 18, 2020, 1:18am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/15 "2020-11-18T01:18:12Z")

</div>

Well in this case, it _will_ be showing all alarms as you’re not filtering them (apart from saying that they need to have a single forward slash in them).  
Are you setting your `TagPath` property?

---

<div class="post-metadata">

**Author:** ![santoshb189](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshb189](https://forum.inductiveautomation.com/u/santoshb189)\
**Post date:** [November 18, 2020, 1:23am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/16 "2020-11-18T01:23:39Z")

</div>

Yes, I am trying to set Tag path property(this is custom property in pop up window). I understood why it is empty, because I haven’t set any property and also not passing any path to it. but I am not sure how to set the path.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 18, 2020, 1:27am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/17 "2020-11-18T01:27:14Z")

</div>

Well I always pass `_DeviceName` and `_DeviceParentPath` (prefixed with an underscore so I know which properties I should be supplying) to a popup as custom parameters, and then I combine these together into another custom property called `DeviceTagPath`:  
`{Root Container._DeviceParentPath} + '/' + {Root Container._DeviceName}`

---

<div class="post-metadata">

**Author:** ![santoshb189](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshb189](https://forum.inductiveautomation.com/u/santoshb189)\
**Post date:** [November 18, 2020, 4:11am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/18 "2020-11-18T04:11:14Z")

</div>

Thanks. I will try this.

---

<div class="post-metadata">

**Author:** ![Nikita\_Walke](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@Nikita\_Walke](https://forum.inductiveautomation.com/u/Nikita_Walke)\
**Post date:** [January 23, 2023, 8:57am UTC](https://forum.inductiveautomation.com/t/alarm-filter-for-udt-for-alarm-status/35096/19 "2023-01-23T08:57:10Z")

</div>

(post deleted by author)
