Skip to main content
Feb 10, 2020 5:24 AM UTC
Solved

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

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!

 

Feb 10, 2020 11:29 AM UTC

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 replies

Feb 10, 2020 11:29 AM UTC

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

Feb 10, 2020 3:28 PM UTC

Thanks Constantine for the reply! It works.