Hi Dojo,
I have a view with many child DVEs. However, I'm not sure which one is the parent DVE. Is there a way to easily find this information through Cube?
Thanks!
Hi Caio,
You can send the GetElementByID message via the Client Test Tool. The input IDs should be taken from the DVE element. Example:


Kind regards,
you can do the same in an automation script:
IConnection conn = engine.GetUserConnection();
int dataminerID = 1; // change to your dve dma id
int elementID = 123; // change to your dve element id
DMSMessage[] resp = conn.HandleMessage(new GetLiteElementInfo() { DataMinerID = dataminerID, ElementID = elementID });
if (resp.Length == 1 && resp[0] is LiteElementInfoEvent element)
{
// now retrieve the main element via element.DveParentDmaId/element.DveParentElementId
resp = conn.HandleMessage(new GetLiteElementInfo() { DataMinerID = element.DveParentDmaId, ElementID = element.DveParentElementId });
if (resp.Length == 1 && resp[0] is LiteElementInfoEvent mainelement)
{
engine.GenerateInformation("Main element is: " + mainelement.Name);
}
}
Hi Catarina, thank you for your reply. This is definitely useful! But in cases where I don't have access to Client Test tool, is there an easy way to find this info only using Cube?