# Alarm Displaypath/Label binding help

**URL:** <https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660>\
**Category:** Ignition\
**Created:** [March 1, 2022, 7:07am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660 "2022-03-01T07:07:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Jar](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@Josh\_Jar](https://forum.inductiveautomation.com/u/Josh_Jar)\
**Post date:** [March 1, 2022, 7:07am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660/1 "2022-03-01T07:07:04Z")

</div>

Hi All,

I am working on upgrading an existing application to Ignition.

I have a high number of Boolean Tags which I would like to set up Alarming on. These tags have been exported out of the old system, manipulated in excel and imported into Ignition.

I would like to be able to show the “Tag Name” as the “Label” binding and “Tag Meta Documentation” as the “Display Path” binding in the alarm configuration.

Now this is simple enough to do manually, but since there is a high number (400+), what would be the best approach to achieve this efficiently?

I have unsuccessfully tried a few things. The main one being renaming the tags with a general convention like Alarm1, set up a UDT, and pass in a parameter which is used in an indirect tag binding for the above properties - I have a feeling you are not able to use an indirect tag binding in an expression?

If there’s one thing I have learnt picking up Ignition, there is always a way, so I thought I would ask you guys.

Thanks for the help.

---

<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:** [March 1, 2022, 7:19am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660/2 "2022-03-01T07:19:32Z")

</div>

> [@Josh\_Jar](#):
>
> I would like to be able to show the “Tag Name” as the “Label” binding and “Tag Meta Documentation” as the “Display Path” binding in the alarm configuration.

So for example you want this?

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

You could relatively easily walk through all of your tag json and add this with jq I think: [How to create / append bulk tooltips via script with json export? - #4 by PGriffith](https://forum.inductiveautomation.com/t/how-to-create-append-bulk-tooltips-via-script-with-json-export/50072/4)

[jqplay](http://www.jqplay.org)

---

<div class="post-metadata">

**Author:** ![Josh\_Jar](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@Josh\_Jar](https://forum.inductiveautomation.com/u/Josh_Jar)\
**Post date:** [March 1, 2022, 7:28am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660/3 "2022-03-01T07:28:49Z")

</div>

Yes that is exactly what I am after. Bulk edits with those bindings.

I will have a look into jqplay

Are there any guides around on how to use the jqplay tool?

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:** [March 1, 2022, 7:30am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660/4 "2022-03-01T07:30:39Z")

</div>

Stack overflow might be your best friend here.

I had a quick play and this might be a starting point:  
`walk( if type == "object" and .setpointA then .label = {"bindType":"Tag", "value": "[.]\(.name).Name"} else . end)`

[https://jqplay.org/s/XhdwiWVvdJ](https://jqplay.org/s/XhdwiWVvdJ)

You’ll need to replace the `"[.]\(.name).Name"` part to get the .name of the parent dictionary…

---

<div class="post-metadata">

**Author:** ![Josh\_Jar](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@Josh\_Jar](https://forum.inductiveautomation.com/u/Josh_Jar)\
**Post date:** [March 1, 2022, 7:37am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660/5 "2022-03-01T07:37:37Z")

</div>

Ok, will have a play around

Cheers

---

<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:** [March 2, 2022, 12:56am UTC](https://forum.inductiveautomation.com/t/alarm-displaypath-label-binding-help/56660/6 "2022-03-02T00:56:21Z")

</div>

Got it:  
[https://jqplay.org/s/YxoZ8Dy\_1I](https://jqplay.org/s/YxoZ8Dy_1I)

With most of it coming from here:

> <https://stackoverflow.com/questions/71308155/how-to-refer-to-parent-object-in-jq-walk>
