Skip to main content
1-Visitor
March 18, 2021
Question

How to change the root node of network using script or any other process

  • March 18, 2021
  • 1 reply
  • 1508 views

Hi Team,

 

Suppose I have an existing network and want to add the new root node at the top of existing root node.

 

How to achieve this scenario.

 

Please advise.

1 reply

16-Pearl
March 19, 2021

Hi @ranjank,

 

I have not tried that using a JavaScript service but if I understood your use case correctly I believe you should be able to achieve that over the Composer when you edit the Network. An Entity can be dragged from the left panel and dropped right above the first node. If you then drag and drop the initial root node onto the new one you should end up with a new root node on top of the old one.

 

Or did I maybe misunderstand your intent ?

ranjank1-VisitorAuthor
1-Visitor
March 22, 2021

@c_lowy ,

 

I was actually trying this before in advance from composer itself but actually, we are unable to place the dragged node from any child node to main root rode.

 

Also it is not allowing to place any node at parallel level to root node.

16-Pearl
March 22, 2021

@ranjank, which version of ThingWorx are you using ?