Hello
Is posible in a protocol service get parameters value from the child elements to make some operation?
Thanks
Juan
Hi Juan,
If I understood your question correctly, it can be done if the child element is known.
The documented approach is to use the DataMinerSystem library to retrieve that element and then retrieve the parameter from it.
For a standalone parameter in a QAction, this can be done, for example, as follows:
IDms dms = protocol.GetDms();
IDmsElement childElement = dms.GetElement(new DmsElementId(346, 530006));
IDmsStandaloneParameter<string> parameter = childElement.GetStandaloneParameter<string>(10);
string value = parameter.GetValue();
For table data, retrieve the table through GetTable(...) and then use GetRow(...) or GetData(...), depending on whether a single row or multiple rows are needed.