ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Network Children

fgrondin
12-Amethyst

Network Children

Hey,

I would like to know if there is a way to get the children of a node inside a network programaticaly.

So, let's say in my network I have parent A and I want all its children programmaticaly.

How would i do that in javascript ?

ACCEPTED SOLUTION

Accepted Solutions
smanley
14-Alexandrite
(To:fgrondin)

Hi Frederik,

You can use the GetChildConnections code snippet as shown below. The name parameter will be the name of the node to return child connections for.

var params = {

name: undefined /* STRING */

};

// result: INFOTABLE dataShape: NetworkConnection

var result = Networks["MyNetwork"].GetChildConnections(params);

View solution in original post

1 REPLY 1
smanley
14-Alexandrite
(To:fgrondin)

Hi Frederik,

You can use the GetChildConnections code snippet as shown below. The name parameter will be the name of the node to return child connections for.

var params = {

name: undefined /* STRING */

};

// result: INFOTABLE dataShape: NetworkConnection

var result = Networks["MyNetwork"].GetChildConnections(params);

Announcements




Top Tags