Question about _PanelTopology.sumAlertNumber

Discussion about recent product features & solutions!
4 posts • Page 1 of 1
nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Question about _PanelTopology.sumAlertNumber

Post by nmnogueira »

Hi,

I am wondering how the _PanelTopology.sumAlertNumber is attributed to each element in the Topology. I thought that the numbers would be assigned sequentially in order to avoid duplicate DPs of type _SumAlertPanel in the same system, but it seems that this is not always the case.
I have a distributed system and for one of the systems, the sumAlertNumber is 2 even though I only have one panel with that name. Is Panel Topology checking if the panel is being used in another system?

I tried digging through pt.ctl but couldn't find the place where the sumAlertNumber is calculated.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Question about _PanelTopology.sumAlertNumber

Post by kilianvp »

child ID is unique and is used for sumAlertNumber see:

Code: Select all

  dyn_int diChilds = pt_getChilds(firstNr, indices, parents, toEnd);
  dynInsertAt(diChilds, firstNr, 1); // add also first ID in to list
  int iLen = dynlen(diChilds);
  iAll = iLen; // for progressbar

Code: Select all

alerts = g_PanelTopologyCache[getSystemName() + "_PanelTopology.sumAlertNumber:_online.._value"];

Code: Select all

  int iLen = dynlen(diChilds);
  for (int iCount = 1; iCount

nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Re: Question about _PanelTopology.sumAlertNumber

Post by nmnogueira »

Thanks Kilian.

I had seen that code, but apparently code block #1 doesn't have anything to do with the sumalerts, #2 is reading (not writing) the sumalert numbers from the DP cache, and #3 is cycling through the sumalerts, which numbers have already been created somewhere else.

Here's why I need to know this: I am implementing a functionality in a distributed system where I need to know which panel to open based on the sumalert DP. I was expecting that the same panel would render the same sumalert DP in all systems (provided that I only use the file in one place in the Topology). But apparently this is not the case, and I am trying to understand why.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Question about _PanelTopology.sumAlertNumber

Post by kilianvp »

panel to be displayed is stored in the _alert_hdl config:

Image

_alert_hdl.._panel
Attachments
Unbenannt-20170714.PNG

4 posts • Page 1 of 1