Hi all,
This question is related to https://community.dataminer.services/question/mn-tree-control-alarms-not-bubbling-propagating-up/?hilite=%27tree%27%2C%27control%27, however, I could not fix my problem using the answer provided there.
I am trying to create a tree control with 3 layers where a child may belong to multiple parents and that parent can have multiple children. The problem is illustrated in the figure below:
In this example, an employee can belong to multiple departments, while a department can have multiple employees. Besides that, these departments belong to a specific building. As you can see, the alarms do not propagate to the departments but do to the building. Also note that, if an employee only belongs to one department, the issue disappears.
To achieve this structure, a relations table is used to hold the IDs of the departments and employees as foreign keys. Then, the relations tag and tree control were defined as follows:
Table 700: Buildings; Table 100: Departments; Table 300: Relations and Table 200: Employees
What can be the cause of this issue?
Thank you!
Hi Diogo, the code looks fine at first sight. Could it be that those alarms already existed before you've added "includeInAlarms" option to the relation? That option only has impact on new alarms.
Hi Tom, thank you for your answer. Unfortunately, that is not the issue. I’ve already tested it again to make sure.