Hi,
i'm trying to read a document type tag and edit a part of it adding a value to an element with a script on a button
right now i'm struggling because i keep getting types error.
i would like to "append" the value.
this is the document structure:
{
"readOnly": true,
"dataType": "Document",
"name": "PerspectiveDisplayParams",
"value": {
"auxiliaries": {
"template": "auxiliaries",
"amount": 1,
"displayName": "Auxiliaries",
"iconPath": "icons/Perspective/Auxiliaries.png",
"parameters": {
"exception": [
],
"popupTags": [
{
"title": "Three-phase Active power",
"unit": "W",
"tagPath": "/sts/PowerEqAux"
},
{
"title": "Consumed Energy",
"unit": "kWh",
"tagPath": "/sts/EnergyAux"
},
{
"title": "L1-N Tension",
"unit": "V",
"tagPath": "/sts/VoltageL1NAux"
},
{
"title": "L1 Current",
"unit": "A",
"tagPath": "/sts/CurrentL1Aux"
},
{
"title": "Power factor",
"unit": "",
"tagPath": "/sts/CosphiAux"
},
{
"title": "Produced Energy",
"unit": "kWh",
"tagPath": "/sts/NegEnergyAux"
}
],
"amount": 30
}
}
},
"tagType": "AtomicTag"
}
and i would like to add my value in "exception".
i've tried to convert it to a list and then back to a pyList or pyArray but i can't "overwrite" on the "exception" section.
i can't find anything about this issue, does someone has an idea on how to manage this situation?