Hi Team,
I'm trying to check if an element is active or not using dms send message in adhoc GQI.
Is it possible to get that info?
Thanks
Hi, if the method proposed by Miguel doesn't work in your case, you could use GetElementByIDMessage or GetElementByNameMessage in your ad-hoc data source to retrieve the information.
var elementInfo = dms.SendMessage(new GetElementByIDMessage(agentID, elementID)) as ElementInfoEventMessage;
var isActive = elementInfo.State == ElementState.Active;
The dms object can be retrieved in the OnInit() method:
public OnInitOutputArgs OnInit(OnInitInputArgs args)
{
dms = args.DMS;
return new OnInitOutputArgs();
}