Hi,
I'm having some troubles with a perspective table that is styled based on row.
When i select a row, the data returns correctly in props.selection.data[0]:
{
"DocEntry": 79,
"LineNum": 15,
"PlannedQty": 693.6,
"IssuedQty": 693.6,
"BaseQty": 0.24605,
"IssueType": "M",
"ItmsGrpCod": 101,
"VisOrder": 1,
"Balance": null,
"ItemCode": "2009",
"UomEntry": -1,
"ItemName": "C",
"UomCode": "Manual",
"ItemType": 4,
"StartDate": 1746550800000,
"EndDate": 1746982800000,
"BaseQtyNum": 0.003468,
"Status": "P",
"UpdateDate": 1747682210147,
"Operator": "admin",
"json_data": "[{\"batchno\":\"batfch\",\"amount\":1},{\"batchno\":\"asdasd\",\"amount\":32}]",
"OrderItemStatus": "Preparing",
"column_40": "",
"column_41": "",
"column_42": "",
"column_47": "",
"column_48": "",
"column_49": "",
"column_43": "",
"column_44": "",
"column_45": "",
"column_46": "",
"column_50": "",
"column_29": "",
"column_25": "",
"column_26": "",
"column_27": "",
"column_28": "",
"column_23": "",
"column_24": "",
"column_30": "",
"column_31": "",
"column_36": "",
"column_37": "",
"column_38": "",
"column_39": "",
"column_32": "",
"column_33": "",
"column_34": "",
"column_35": ""
}
But when i refresh the binding I sometimes get the 'style' as an object in the array:
{
"DocEntry": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 79
},
"LineNum": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 15
},
"PlannedQty": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 693.6
},
"IssuedQty": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 693.6
},
"BaseQty": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 0.24605
},
"IssueType": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "M"
},
"ItmsGrpCod": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 101
},
"VisOrder": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 1
},
"Balance": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": null
},
"ItemCode": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "200019"
},
"UomEntry": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": -1
},
"ItemName": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "C"
},
"UomCode": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "Manual"
},
"ItemType": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 4
},
"StartDate": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 1746550800000
},
"EndDate": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 1746982800000
},
"BaseQtyNum": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 0.003468
},
"Status": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "P"
},
"UpdateDate": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": 1747682210147
},
"Operator": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "admin"
},
"json_data": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "[{\"batchno\":\"batfch\",\"amount\":1},{\"batchno\":\"asdasd\",\"amount\":32}]"
},
"OrderItemStatus": {
"style": {
"backgroundColor": "#FCBF49"
},
"value": "Preparing"
}
}