Hi,
I have a QAction in my driver that is triggered every X minutes.
When certain conditions are met, I want to update data in a Parameter on a different Element.
Problem is, I can't figure out how do achieve that.
I've tried with IDms dms = protocol.GetDms(); And then getElement, and I can read data, but not update anything.
I've also tried with protocol.SLNet.SendMessage(msg), and various NotifyProtocol calls.
Using Dataminer 10.5.
Hi Stefan,
The following code is an example of how to set a cell value of type string:
IDmsElement element = dms.GetElement("<elementName>"); // Or the overload that uses DmsElementId
IDmsTable table = element.GetTable(tableId); // e.g. 1000
IDmsColumn<string> column = table.GetColumn<string>(columnParameterId); // e.g. 1005
column.SetValue(primaryKey, setValue); // primaryKey = "1", setValue = "exampleValue"
Other types that can be provided as the generic parameter T of GetColumn<T> are int?, double? or DateTime? (e.g. IDmsColumn<double?>).