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.
Question about _PanelTopology.sumAlertNumber
- nmnogueira
- Posts:125
- Joined: Thu May 05, 2011 12:59 pm
Question about _PanelTopology.sumAlertNumber
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Question about _PanelTopology.sumAlertNumber
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 progressbarCode: 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
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.
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