# Leased scan class on tags using binEnum()

**URL:** <https://forum.inductiveautomation.com/t/leased-scan-class-on-tags-using-binenum/32712>\
**Category:** Ignition\
**Created:** [February 29, 2020, 1:46am UTC](https://forum.inductiveautomation.com/t/leased-scan-class-on-tags-using-binenum/32712 "2020-02-29T01:46:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chelton](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chelton](https://forum.inductiveautomation.com/u/chelton)\
**Post date:** [February 29, 2020, 1:46am UTC](https://forum.inductiveautomation.com/t/leased-scan-class-on-tags-using-binenum/32712/1 "2020-02-29T01:46:31Z")

</div>

I have an object on a template I change the colour on depending on 4 tags Alarm/Starting/Stopping/Running  
I created a custom property called Status with an expression binding

```auto
binEnum(tag("edge") + {Pump.Device_ID} + "/Alarm.value"),etc,etc,etc)

```

I then use this Status property as a driving property for the style customiser.  
My question is when this object is on an active screen should the 4 tags change to the leased/driven rate? They don’t.  
Is there a better way of doing this?

---

<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 29, 2020, 2:37am UTC](https://forum.inductiveautomation.com/t/leased-scan-class-on-tags-using-binenum/32712/2 "2020-02-29T02:37:06Z")

</div>

Bring the tags into custom properties with their own tag bindings, then build your expression from those.

Imnsho, if you are using the tag() expression function, you’re making a mistake. (It was the way to do indirect tag binding before indirect binding became its own thing. Should have been deprecated at that point.)

---

<div class="post-metadata">

**Author:** ![chelton](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chelton](https://forum.inductiveautomation.com/u/chelton)\
**Post date:** [February 29, 2020, 3:32am UTC](https://forum.inductiveautomation.com/t/leased-scan-class-on-tags-using-binenum/32712/3 "2020-02-29T03:32:01Z")

</div>

Hi Phil, Thanks for the tip, I have now created 5 custom properties with indirect tag bindings and use binEnum() to update my status custom property. This did solve my problem cheers.
