Skip to main content
1-Visitor
February 10, 2020
Solved

How to get the id of the node expanded from the tree advanced grid widget

  • February 10, 2020
  • 1 reply
  • 1663 views

Hi,

I am getting the structure from api initially for 3 levels in the tree advanced grid widget. Now, I want to pass the expanded node Id to other service (getting data from api) which is fetching data for 1 levels only and this service, I will bind to child data in the tree advanced grid widget. I tried Selected row, but here if I am selecting the row then only id is getting passed to other service. How to pass the id of the last level selected node to child service to fetch the details.

 

Please let me know how to achieve this!

 

Best answer by Constantine

Hello @adityak506,

 

There's a rather complex API for that, but it's possible to expand the advanced tree level by level, loading children dynmically. All details are in Help: http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FMashup_Builder%2FWidgets%2FWorkingWithTreeGridData.html%23wwID0EOXU4

 

Regards,
Constantine

1 reply

18-Opal
February 10, 2020

Hello @adityak506,

 

There's a rather complex API for that, but it's possible to expand the advanced tree level by level, loading children dynmically. All details are in Help: http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FMashup_Builder%2FWidgets%2FWorkingWithTreeGridData.html%23wwID0EOXU4

 

Regards,
Constantine

3-Newcomer
February 10, 2020

Thanks Constantine for the reply! It works.