Skip to main content
1-Visitor
Mar 12, 2018 12:40 PM UTC
Question

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

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

 

 

3 replies

5-Regular Member
Mar 13, 2018 1:10 PM UTC

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

 

Translate
22-Sapphire I
Mar 15, 2018 2:06 PM UTC

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.

Translate
5-Regular Member
Jan 25, 2019 3:37 AM UTC

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.

Translate