# Property updated value not available via key subscript reference

**URL:** <https://forum.inductiveautomation.com/t/property-updated-value-not-available-via-key-subscript-reference/65473>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 20, 2022, 4:59pm UTC](https://forum.inductiveautomation.com/t/property-updated-value-not-available-via-key-subscript-reference/65473 "2022-10-20T16:59:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.vosler](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@james.vosler](https://forum.inductiveautomation.com/u/james.vosler)\
**Post date:** [October 20, 2022, 4:59pm UTC](https://forum.inductiveautomation.com/t/property-updated-value-not-available-via-key-subscript-reference/65473/1 "2022-10-20T16:59:05Z")

</div>

Ignition 8.1.20  
Perspective  
Given an array property with a single object element containing a single field:  
self.custom.arr[0] = { 'fieldName': 'initial value' } defined in the property tree of any component

Update that object in a script. The new value is available with the get(...) method, but not available through the typical x[key] method.

Example, in a change script:

> o = self.custom.arr  
> o1 = o[0]  
> system.perspective.print(type(o1). **name** + ' | ' + o1['fieldName'])  
> o1['fieldName'] = 'hello world'  
> system.perspective.print(o1['fieldName'] + ' | ' + o1.get('fieldName', 'default'))

Produces:

> 12:47:13.236 [Browser Thread: 54390] INFO Perspective.Designer.Workspace - PropertyTreeScriptWrapper$ObjectWrapper | initial value  
> 12:47:13.236 [Browser Thread: 54390] INFO Perspective.Designer.Workspace - initial value | hello world

Is this expected? Is this new?

---

<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:** [October 20, 2022, 5:07pm UTC](https://forum.inductiveautomation.com/t/property-updated-value-not-available-via-key-subscript-reference/65473/2 "2022-10-20T17:07:13Z")

</div>

Tip: use the \</\> code formatting button when posting code (rather than the `>` quotation markdown). It will indent properly (important for Python) and give syntax highlighting. You can use the 🖉 edit link to fix your post.
