Hi everyone,
I’m writing to you because I have a problem with a qualified value from a change script for the “items” property of a tree in perspective.
There is 2 arguments natively implemented in the script, which are “currentValue” and “previousValue”, but when I try to access currentValue.value elements it throws me an error saying that there is no such arguments for this data.
Here is what the currentValue.value looks like :
I have tried currentValue[0].value, test[0].items(), test.items(), no success.
Also it’s the same the other element of items (data, label, …)
Thank you !
Thank you for you answer. Yeah this is normal, because i’m using a label component just to see the dada, so im displaying the data in the text property of the label
Ok it works, looks like I can’t use directly “currentvalue.value”, I need to pass it to another custom property then use this property to do what I want. Don’t know why but anyway I will use that, thank you for your help !
Here is the type of test[0] : class com.inductiveautomation.perspective.common.ImmutableQualifiedValue
and the type of test[0].value is class java.util.HashMap
oh weird, then this might work: test[0].value.items test[0].getValue().items
or if that doesnt: system.util.jsonDecode(test[0].toString()).items
surely should do something xd