# View Property Bind to Session Property with Parameter

**URL:** <https://forum.inductiveautomation.com/t/view-property-bind-to-session-property-with-parameter/94382>\
**Category:** Ignition\
**Created:** [August 8, 2024, 8:46pm UTC](https://forum.inductiveautomation.com/t/view-property-bind-to-session-property-with-parameter/94382 "2024-08-08T20:46:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markc](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markc](https://forum.inductiveautomation.com/u/markc)\
**Post date:** [August 8, 2024, 8:46pm UTC](https://forum.inductiveautomation.com/t/view-property-bind-to-session-property-with-parameter/94382/1 "2024-08-08T20:46:55Z")

</div>

I would like to have the value of a Custom Property in a View bound to the value of a Session Custom Property, but have the binding point to specific Session Custom Property values based on a View Parameter. Can this be done? If yes, how?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 8, 2024, 9:37pm UTC](https://forum.inductiveautomation.com/t/view-property-bind-to-session-property-with-parameter/94382/2 "2024-08-08T21:37:46Z")

</div>

You could use an expression binding and select the appropriate session variable based on the view parameter using the `case()` function.

> **[case | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/expression-functions/logic/case)**
>
> This function acts like the switch statement in C-like programming languages.

---

<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:** [August 8, 2024, 10:46pm UTC](https://forum.inductiveautomation.com/t/view-property-bind-to-session-property-with-parameter/94382/3 "2024-08-08T22:46:04Z")

</div>

Try the [property()](https://www.docs.inductiveautomation.com/docs/8.1/appendix/expression-functions/advanced/property) expression function.

---

<div class="post-metadata">

**Author:** ![markc](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markc](https://forum.inductiveautomation.com/u/markc)\
**Post date:** [August 9, 2024, 3:27pm UTC](https://forum.inductiveautomation.com/t/view-property-bind-to-session-property-with-parameter/94382/4 "2024-08-09T15:27:20Z")

</div>

Thank you. This works perfect.
