AlarmGroup - GroupParent

In this forum, you can report bugs, post suggestions for improvements and add other topics.

AlarmGroup - GroupParent

Postby roman66 » Tue 27. Aug 2024 13:36:30

Hi,
i try to use in 'AREA' makro : $.expr("pMe.GroupParent") - don't work for me in runtime and in web.
newbie
PM 9.0.28.0 64bit
roman66
 
Posts: 14
Joined: Tue 09. Jul 2024 12:07:38

Re: AlarmGroup - GroupParent

Postby Tomáš Bräuer » Wed 28. Aug 2024 7:10:29

Hello,
two mistakes in one expression:

1) Our manual clearly states that read only property PmaAlarmGroup.GroupParent returns REFERENCE to alarm group parent, but in the area MUST be a string (name), so that it can't work at all. The correct one would be
Code: Select all
$.expr("pMe.GroupParent.GroupId")
But DON'T USE that, it is logically WRONG in any case.

2) The logic of how you used it is against the purpose of this configurator. The reason of Area in PmaAlarmGroup is to distinguish the subgroups (childs of the same parent) one from another and from parent as well. So that every PmaAlarmGroup in the same tree of parents and childs HAS TO HAVE an UNIQUE area identinficator. So it means that your construction in case it worked, would anyway lead to the same identificator as parent, which is FORBIDDEN.
Tomáš Bräuer
Administrátor
 
Posts: 165
Joined: Thu 13. Dec 2012 9:13:13


Return to Bugreports, suggestions for improvements, other...

Who is online

Users browsing this forum: No registered users and 2 guests