# \[Question\]How to access view custom properties via scripting perspective?

**URL:** <https://forum.inductiveautomation.com/t/question-how-to-access-view-custom-properties-via-scripting-perspective/21693>\
**Category:** Ignition Early Access\
**Tags:** ignition80\
**Created:** [January 4, 2019, 5:02pm UTC](https://forum.inductiveautomation.com/t/question-how-to-access-view-custom-properties-via-scripting-perspective/21693 "2019-01-04T17:02:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattn1](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mattn1](https://forum.inductiveautomation.com/u/mattn1)\
**Post date:** [January 4, 2019, 5:02pm UTC](https://forum.inductiveautomation.com/t/question-how-to-access-view-custom-properties-via-scripting-perspective/21693/1 "2019-01-04T17:02:52Z")

</div>

Very simple example. I am using a docked view as header. As the new primary views open I want to use a startup script on the primary view to write to the session.custom.property that I have tied to the text on a label in the header view. I can get this to work.

But since I don’t want to hardcode the view title into each script, I would like to reference a custom property from primary view.

What is the syntax to access the custom properties from a view via scripting?

---

<div class="post-metadata">

**Author:** ![mattn1](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mattn1](https://forum.inductiveautomation.com/u/mattn1)\
**Post date:** [January 4, 2019, 5:06pm UTC](https://forum.inductiveautomation.com/t/question-how-to-access-view-custom-properties-via-scripting-perspective/21693/2 "2019-01-04T17:06:59Z")

</div>

the answer is self.custom.propertyname
