I am unsure if this is intended behavior or not. Ignition version 8.1.25
I have an expression binding on a custom property in perspective that is along the lines of
{session.custom.array1}[{session.custom.selection1}]
.
I set selection1
to null when initializing but also when a different selection field is modified. selection1
is a selection index, so I use null since setting to a negative number would result in it grabbing something else from the array.
When populating array1
after changing selections elsewhere, and not changing the value in selection1
from null, the custom property with the above binding has the data from the first item of array1
.
I then tested directly with a binding of {session.custom.array1}[null]
and it returned the data from the first item in array1