# Can't close property binding box

**URL:** <https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564>\
**Category:** Ignition\
**Created:** [December 11, 2012, 7:36pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564 "2012-12-11T19:36:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [December 11, 2012, 7:36pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/1 "2012-12-11T19:36:37Z")

</div>

I’m creating a simple template to display a boolean tag as a string (‘On’, ‘Off’).

I added this expression to the text field for the label:

`if (toInteger({Digital Display.Label 1.dataQuality}) = 192,
    if (toBoolean(tag({Digital Display.Path}+{Digital Display.Tag}),0) , 
        {Digital Display.On}, {Digital Display.Off}),
    'Unknown')`

Then I added a property to drive a style and bound this expression to it:

`if (toInteger({Digital Display.Label 1.dataQuality}) = 192,
    if (toBoolean(tag({Digital Display.Path}+{Digital Display.Tag}),0) , 
        1, 0),
    2)`

After this the ok button will not close the dialog. Cancel works as does not binding anything. But Ok just flashes the property list for the component after a second.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [December 12, 2012, 4:13pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/2 "2012-12-12T16:13:36Z")

</div>

You are not getting any errors popping up?

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [December 12, 2012, 4:48pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/3 "2012-12-12T16:48:59Z")

</div>

Nope.  
I even created an error so I could have the error box open and then tried again. No errors showed up.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [December 12, 2012, 9:56pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/4 "2012-12-12T21:56:04Z")

</div>

That is really weird. Can you call our tech support so we can look at it?

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [December 12, 2012, 10:08pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/5 "2012-12-12T22:08:47Z")

</div>

While waiting for tech support to call me back, I ticked Overlay Opt-Out and the dialog closed.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [December 12, 2012, 10:13pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/6 "2012-12-12T22:13:22Z")

</div>

It seems you have some weird drawing issues with that. Is the expression working now?

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [December 12, 2012, 10:33pm UTC](https://forum.inductiveautomation.com/t/cant-close-property-binding-box/5564/7 "2012-12-12T22:33:20Z")

</div>

Dave had a look and tweaked the expression. It now works but something weird was happening. He will try and reproduce it and may raise a bug.

I’m good for now.

Thanks

The new expression is:

`if(tag({Digital Display.Path}+{Digital Display.Tag}+".Quality") = 192,
	if(tag({Digital Display.Path}+{Digital Display.Tag}) = 1, 
		1, 0), 2)`
