Skip to main content
1-Visitor
March 12, 2018
Question

how to display the hierarchical data in form of tree in mashup

  • March 12, 2018
  • 2 replies
  • 4410 views

how to display the hierarchical data in form of tree in mashup as shown in the image.

 

 

2 replies

5-Regular Member
March 13, 2018

Hi @achitters you can use Grid Advanced Widget from ThingWorx Marketplace. It contains both Grid&Tree widget allowing you to display such a hierarchy. Additionally there's a sample entity within the zip that you'll download named GridAdvancedExampleEntities-v3.0.xml this will create some demo mashups and things with services to return demo data something the attached screenshot 

 

13-03-2018 14-09-41.jpg

 

22-Sapphire I
March 15, 2018

Thingworx has a structure called Networks which creates that hierarchy and can be easily visualized in the Tree widget in a mashup.

What it depends on is a table that has to and from or child and parent relationships.

for example

child   |   parent

    A    |      

    1    |      A

    2    |      A

    B    |      

    3    |      B

    4    |      B

 

This would give you two root nodes called A and B each with two children

 

The only requirement to be able to use a Network is that they all have to be Things, if that is not needed, you can create a DataTable instead. Make sure you have the Child and Parent field as primary in the DataShape.

5-Regular Member
January 25, 2019

i am a beginner in thingworx. I would like to understand how we can bring the data into Tree widget. Could you please explain in more detail? It will help me a lot. Thanks for your understanding.