Solved
Adding values dynamically to a ValueStream
Hi I am trying to update values to my value stream using the Extension SDK. However the values are not getting changed on Thingworx.
InfoTableFunctions functions = new InfoTableFunctions();
InfoTable table = functions.CreateInfoTableFromDataShape(propertyName, propertyName+"Shape");
ValueCollection row = new ValueCollection();
for (Entry<String, Double> entry: dataMap.entrySet()) {
row.SetStringValue(keyField, entry.getKey());
row.SetNumberValue(valueField, entry.getValue());
row.SetDateTimeValue("ds_timestamp", now);
table.addRow(row.clone());
}
myThing.AddInfoTableValueStreamEntry(now, propertyName, table);
//mtConnectDeviceThing.setPropertyValue(propertyName, new InfoTablePrimitive(table)); // this works, but not sure if it will add to the stream.
