Skip to main content
1-Visitor
February 14, 2020
Solved

tree widget sub child display

  • February 14, 2020
  • 2 replies
  • 2973 views

Hi,

We are trying to reproduce the browsing of kepware tags in runtime. We are trying to bind the script we wrote to tree widget to bring the exact structure. But since all the last child name ( Alarmstate_x) of different parent are same, the sub child of Alarmstate_x (Alarmstate_x0 to Alarmstate_x4) are repeatedly binded to one child instead of spliting them. I have attached the script and screenshot of the scenario we are trying to produce. Please help us on what we are missing.

 

Thanks,

svisveswaraiya.

Best answer by ganeja

@svisveswaraiya_285988 

 

Hello !

I checked the screen shoot attached . There i found "Alarmstate_x"  has two parents . 
One is "Source_OEM_L1_Alarm_Map_00" and another one is "Source_OEM_L1_Alarm_Map_01" . 
This is voilating the basic Tree defination . Which says "a parent node can have multiple child nodes but a child can not have multiple parents.

Because of this the data is getting displayed in a wrong way in the tree grid. 

 

Thanks

Gunjan Aneja

 

2 replies

ganeja5-Regular MemberAnswer
5-Regular Member
June 3, 2020

@svisveswaraiya_285988 

 

Hello !

I checked the screen shoot attached . There i found "Alarmstate_x"  has two parents . 
One is "Source_OEM_L1_Alarm_Map_00" and another one is "Source_OEM_L1_Alarm_Map_01" . 
This is voilating the basic Tree defination . Which says "a parent node can have multiple child nodes but a child can not have multiple parents.

Because of this the data is getting displayed in a wrong way in the tree grid. 

 

Thanks

Gunjan Aneja

 

Support
June 11, 2020

Hi @svisveswaraiya_285988.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for participating in our community!

 

Regards.

 

--Sharon