Skip to main content
1-Visitor
December 22, 2020
Solved

In Network, how to display any other value for all nodes instead of ThingName under hierarchy

  • December 22, 2020
  • 1 reply
  • 1211 views

Hi Team,

 

Suppose I have a below network:-

 

 A(Parent)

   B (Child of A)

     C(Child of B)

 

where A ,B and C are ThingNames of ThingWorx Composer which is displaying on a tree widget in a mashup.

 

Let say things A,B and C has common property as 'displayName' and I want to show the hierarchy as per displayName, then how would I achieve this to show a network on a tree widget in Mashup.

 

For e.g., the result should be like:-

     displayNameofA

               displayNameOfB

                          displayNameOfC

 

(instead of ThingNames)

 

In short, I want to add some property in a network hierarchy instead of ThingName (or any other alternative instead of thingname)

 

Thanks in advance.

 

Best answer by PaiChung

Usually I use either a loop or derivefields to add another (or several other) columns of information which then are used for display or state based definition etc.

Let's say you use GetNetworkConnections

then run a derivefields to add a column that is Things[treeinfotable.child].PropertyOfChoice

Now I have a new column with information from each of the things

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
December 22, 2020

Usually I use either a loop or derivefields to add another (or several other) columns of information which then are used for display or state based definition etc.

Let's say you use GetNetworkConnections

then run a derivefields to add a column that is Things[treeinfotable.child].PropertyOfChoice

Now I have a new column with information from each of the things