Hello
I'm trying to add a new row to a Dataset. I've already checked in this forum. But I'm not able to find the solution
This is the code:
uno = self.parent.getChild("bin_flex").getChild("Table")
newrow = [0,1,2,3,4,5,6,7,8]
uno.data = system.dataset.addRow(uno.data, newrow)
I'm getting this error
caused by org.python.core.PyException
Traceback (most recent call last):
File "function:runAction", line 4, in runAction
AttributeError: 'com.inductiveautomation.perspective.gateway.script' object has no attribute 'data'
this is the data in the table
{
"$": [
"ds",
192,
1708442623499
],
"$columns": [
{
"name": "fut_id",
"type": "Integer",
"data": [
10408
]
},
{
"name": "bin_no",
"type": "String",
"data": [
"8001202300005555"
]
},
{
"name": "plate_no",
"type": "String",
"data": [
"A0"
]
},
{
"name": "real_cast_no",
"type": "String",
"data": [
"1"
]
},
{
"name": "apm_park_name",
"type": "String",
"data": [
"E"
]
},
{
"name": "cast_date",
"type": "String",
"data": [
"05/23"
]
},
{
"name": "extraction",
"type": "String",
"data": [
"extraction"
]
},
{
"name": "flask_status",
"type": "String",
"data": [
"Extracted"
]
},
{
"name": "delete",
"type": "String",
"data": [
"delete"
]
}
]
}
please let me know
Thanks