Hi Dojo,
I'm working on a GGQI script, in the script we get a DOM resource, from the resource I get an element, depending on which pool it is I want to display a number of parameters (PIDs hardcoded) with their values and alarm level. I already have a lot:
public List<GQIRow> GetRows()
{
var rows = new List<GQIRow>();string dmaId = _arguments.Resource.Info.LinkedElementInfo;
var element = _arguments.Dms.GetConnection().GetDms().GetElement(new DmsElementId(dmaId));var VirtualResourceDirectoryParam = element.GetStandaloneParameter<string>(596);
string paramName = ????
rows.Add(new GQIRow(paramName, new[] {
new GQICell{ Value = paramName},
new GQICell{ Value = VirtualResourceDirectoryParam.GetValue() },
new GQICell{ Value = VirtualResourceDirectoryParam.GetAlarmLevel().ToString()},
new GQICell{ Value = "TBD" },
}));
return rows;
}
Getting the pool is also not an issue but I don't know how I could get the parameter description, any suggestions?
Hi Timothy,
If you know the protocol name and version, you can use GetProtocolMessage to retrieve all the information about the protocol.
var message = new GetProtocolMessage(element.Protocol.Name, element.Protocol.Version);
var result = (GetProtocolInfoResponseMessage)gqiDms.SendMessage(message);var allParameters = result.AllParameters;
For more details, see the documentation here:

Thanks! as I have my element I can use
GetProtocolMessage getProtocolMessage = new GetProtocolMessage(element.Protocol.Name, element.Protocol.Version);
var protocolInfo = (GetProtocolInfoResponseMessage)_arguments.Dms.SendMessage(getProtocolMessage);