@integral Thanks for noticing.
I am not able to get id from server. I receive events data in the following format:
{‘events’: [{‘guid’: ‘0x01619C’, ‘timestamp’: ‘2019-04-15T16:33:31.873471’, ‘value’: 390, ‘type’: ‘1’, ‘meta-data’: ‘0x1’}, {‘guid’: ‘0x0161A0’, ‘timestamp’: ‘2019-04-15T16:33:31.874481’, ‘value’: 286, ‘type’: ‘1’, ‘meta-data’: ‘0x1’}], ‘count’: 2}
My table columns are as below (one more column to show full path):
var eventTable=[
{ id:“signal1”, header:{text:“Signal Name”, css:{“background”:"#AFA"}}, width:200, footer:‘Signal Name’, fillspace:true, sort:“string”},
{ id:“guid”, header:“guid”,width:200, footer:‘guid’, fillspace:true, sort:“int”, css:“tableHeader”},
{ id:“timestamp”, header:“timestamp”, width:200, footer:‘timestamp’, fillspace:true, sort:“string”, css:“tableHeader”},
{ id:“value”, header:“value”,width:200, footer:‘value’, fillspace:true, sort:“int”, css:“tableHeader”},
{ id:“type”, header:“type”,width:200, footer:‘type’, fillspace:true, sort:“int”, css:“tableHeader”},
{ id:“metaData”, header:“meta-data”,width:200, footer:‘meta-data’, fillspace:true, sort:“string”, css:“tableHeader”}
];
I have one more dictionary to map path with guid. i compare values of guid received from event with the one in dictionary and get path and update corresponding row. That is the functionality. it is not straight forward updated event values with table, since there is extra column in table for path.
But events dont give path. it gives guid. Thats why i thought of updating whole table.
Please let me know if you have any ways to update table row for the same please.