# UDT parameters in expression binding option of the display path of an alarm

**URL:** <https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546>\
**Category:** Ignition\
**Created:** [February 13, 2019, 4:08pm UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546 "2019-02-13T16:08:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [February 13, 2019, 4:08pm UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/1 "2019-02-13T16:08:47Z")

</div>

Hi  
When I want to use UDT parameters in expression binding option of the display path of an alarm, expression doesn’t work correctly and display path get its default value.  
for example i\I write something like this:  
replace({PathToTag},’/’,’:’)+ ‘-\>HiHi’  
anything other than UDT parameters in expression works fine.  
Is there a bug or I did something wrong?  
I use v7.9.10

---

<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 13, 2019, 4:16pm UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/2 "2019-02-13T16:16:58Z")

</div>

UDT parameters are treated as string substitutions before your expression is executed. Quote them. (This changes in v8, btw.)

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [February 13, 2019, 4:19pm UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/3 "2019-02-13T16:19:13Z")

</div>

> [@pturmel](#):
>
> substitutions

Thanks Phil. You save me.

---

<div class="post-metadata">

**Author:** ![richardNZ15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/richardnz15/32/33373_2.png) [@richardNZ15](https://forum.inductiveautomation.com/u/richardNZ15)\
**Post date:** [March 12, 2019, 3:52am UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/4 "2019-03-12T03:52:46Z")

</div>

Hi,  
I am having similar problems again, this always gets me..  
I'm trying to bind to the **isActive** property of an alarm. I am trying to do the following:

`{[.]HiHiAlmEnb} & ({[.]In} > {AlmHiHiValue}`

Where first two items are boolean tags part of the UDT, and the last item is a UDT Parameter.  
The gateway console log says it is evaluating as:

> (prov:default:/tag:Bakels/Mount Maunganui/Refinery/Common/Devices/AnalogIn/M3TT000103/In:/alm:AlarmHiHi) Error compiling bound property 'activeCondition', with value '{[.]HiHiAlmEnb} & ({[.]In} \> 95.0'.

I've tried a few different combinations of the quotes but still can't get it to work.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [March 12, 2019, 6:19am UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/5 "2019-03-12T06:19:04Z")

</div>

Hi  
just quote them.  
for examle:  
replace(’{PathToParentFolder}’,‘PU’,‘PUMP’)+’-\>LoLo’  
As you see I use ‘{PathToParentFolder}’ to access it in expression.  
try this:  
‘{[.]HiHiAlmEnb}’ & (’{[.]In}’ \> ‘{AlmHiHiValue}’

---

<div class="post-metadata">

**Author:** ![richardNZ15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/richardnz15/32/33373_2.png) [@richardNZ15](https://forum.inductiveautomation.com/u/richardNZ15)\
**Post date:** [March 12, 2019, 7:20am UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/6 "2019-03-12T07:20:31Z")

</div>

These aren’t STRING properties though so it doesn’t work.  
I found this manual entry but it mainly talks about string parameters and string tags.  
[https://docs.inductiveautomation.com/display/DOC79/Data+Type+Parameters+in+Expressions](https://docs.inductiveautomation.com/display/DOC79/Data+Type+Parameters+in+Expressions)

putting quotes around the tag references just shows the literal result:  
`(prov:default:/tag:Bakels/Mount Maunganui/Refinery/Common/Devices/AnalogIn/M3TT000103/In:/alm:AlarmHiHi) Error compiling bound property 'activeCondition', with value '{[.]HiHiAlmEnb} &amp; ({[.]In} &gt; 95.0'.`

---

<div class="post-metadata">

**Author:** ![mjohnson0238](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mjohnson0238](https://forum.inductiveautomation.com/u/mjohnson0238)\
**Post date:** [January 17, 2025, 8:47pm UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/7 "2025-01-17T20:47:42Z")

</div>

I am trying to do this and seem to have issues as well. Can some give me a bump:

```python
SELECT TOP (1)
       EndsDownLQA
FROM Plt65_Twister_Production
WHERE MachineNum = 'V0'{TwisterNumber}'A'
ORDER BY tStamp DESC

```

How should I format the quotes on the {TwisterNumber} parameters?

---

<div class="post-metadata">

**Author:** ![mjohnson0238](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mjohnson0238](https://forum.inductiveautomation.com/u/mjohnson0238)\
**Post date:** [January 17, 2025, 9:25pm UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/8 "2025-01-17T21:25:30Z")

</div>

I figured it:

```python
SELECT TOP (1)
	EndsDownLQA
FROM Plt65_Twister_Production
WHERE MachineNum = CONCAT('V0',{TwisterNumber},'A')
ORDER BY tStamp DESC

```

---

<div class="post-metadata">

**Author:** ![Maryam\_Saeed](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Maryam\_Saeed](https://forum.inductiveautomation.com/u/Maryam_Saeed)\
**Post date:** [January 27, 2025, 8:11am UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/9 "2025-01-27T08:11:12Z")

</div>

I am trying almost the same thing through isActiveAlarm

if(isAlarmActive({[.]Product Level}, "HH"), "HH",  
if(isAlarmActive({[.]Product Level}, "HA"), "HA",  
if(isAlarmActive({[.]Product Level}, "LA"), "LA",  
if(isAlarmActive({[.]Product Level},"LL"), "LL", "None"))))

I get "None" in my expression tag which is set to string.

Tried the quotes method, gives "Error configuration"

---

<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:** [January 27, 2025, 11:52am UTC](https://forum.inductiveautomation.com/t/udt-parameters-in-expression-binding-option-of-the-display-path-of-an-alarm/22546/10 "2025-01-27T11:52:45Z")

</div>

I'm sure you have been hanging onto your seat for 6 years awaiting a reply... But I think those expressions need brackets around them to evaluate them with the operands. Eg  
`({thinga} & {thingb}) `

> [@Maryam\_Saeed](#):
>
> isActiveAlarm

The first arg is a string, the tag path not the value of the tag. I cant recall, but maybe you can do `{[.]tag.fullPath}`
