Skip to main content
1-Visitor
January 27, 2021
Solved

Tree Widget in Mashup Cannot Display Network Properly

  • January 27, 2021
  • 2 replies
  • 3059 views

Hello everyone,

 

I have created a network and it looks properly under Network Hierarchy tab. Then I bind the Network data to Tree Widget via GetNetworkConnectionsWithTemplate service. When I hit view mashup it displays some nodes in wrong places. The configuration of Tree Widget is as follows:

IDField: to,

LabelField: to,

ParentIDField: from,

TooltipField: to,

ValueField: to

and rest of them are default.

I'm not sure if my configuration is wrong or the widget has a bug. 

I'm attaching some screenshots to help you to understand.

 

Best,

Kaan

Best answer by c_lowy

@KC_9771425,

 

While creating a Network from the Composer Network UI I believe same sub-node cannot be added to different main nodes. I believe doing so programmatically technically works but is an unsupported scenario hence my previous question of whether you created this Network programmatically. 

2 replies

16-Pearl
January 28, 2021

Hi @KC_9771425,

 

Am I seeing correctly that you are displaying some entities several times in the Network ? Which ones are ThingTemplates ?

Could you also share the version of ThingWorx you are using ?

 

Thanks !

1-Visitor
January 29, 2021

Not me but tree displays duplicate entities. I want to display them as in Network Hierarchy. You can see that in the first attachment. All entities in my network are things. My current Thingworx version is 9.1

 

Best,

Kaan

16-Pearl
January 29, 2021

Did you create this Network programmatically using the CreateNetwork API ?

Support
March 9, 2021

Hi @KC_9771425.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon