Portekoi
Portekoi

Reputation: 1147

Convert dbId to Node

I'm trying to convert a dbId to node to use the function setNodeOff()

In this link, author describe the method dbIdToNode but I get an undefined error when I use it : (v is my viewer)

enter image description here

If I check v.model.getData() .instanceTree, I get no undefined error :

enter image description here

How I can convert a dbId to a node?

Upvotes: 1

Views: 217

Answers (1)

varunpatil
varunpatil

Reputation: 823

Actually, you don't need to convert dbId to node to use the function setNodeOff()

This line will work: viewer.impl.visibilityManager.setNodeOff(dbId, true);

Upvotes: 2

Related Questions