Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7420

Avoid duplicate nodes in tree structure

$
0
0

@sangeetaarora21 wrote:

Hi Walter,

I am creating a diagram using tree mapper sample where I have two trees. One is on the left side and another on the right side. My tree can have multiple levels (suppose 8 levels). So, I have to fetch the values of all the levels from the database and then draw the tree diagram. So, for this I have used nested loop of the levels means 8 levels. I am successfully able to create the tree but the problem which I am facing is the duplicate of nodes. So duplicate nodes are coming after the complete tree generation.

Please check the screen.

Here, you can see that 1.1.1 Recurring is repeating 3 times.

I have tried to check the duplicate values by using "diagram.findNodeForData(nodedata);" but its not able to find it values. I also tried diagram.model.containsNodeData(data) but again its not able to find the existence of duplicate value.

Can you please suggest how I can achieve the same?

Thank you.

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7420

Trending Articles