cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

How to use the data selected in the graph

IM_10769492
7-Bedrock

How to use the data selected in the graph

Hi.

I have now managed to store the data selected in the graph in a list. 

By extracting the selectedItems from the list, the following INFOTABLE was obtained.

IM_10769492_0-1738650948389.png

I would like to create a function that uses these selectedItems as input.

In this case, how do you create a data shape to be applied to the input InfoTable?

IM_10769492_1-1738651134939.png

I tried creating a data shape like this but it didn't work...

IM_10769492_2-1738651263251.png

 

 

ACCEPTED SOLUTION

Accepted Solutions

I was able to view the incoming data in a grid widget and use it by creating and applying the same Data Shape!

View solution in original post

3 REPLIES 3

Your grid is displaying data that is result from a service call. This is where you created the binding by dragging the services "Returned Data>All data" from the Data tab and dropping it onto the grid. The same service has also "Returned Data>Selected Rows". This is an infotable of the same shape as the "all data", the datashape is defined in the service's output parameter. You can use this as an input to your function or service.

Rocko_0-1738660603984.png

 

Thank you for your reply!

Sorry for the lack of information... I would like to use the SelectedItems in the list shown below as input for the service.

IM_10769492_0-1738716654433.png

However, the Infotable stored in the list is the selected values ​​in another graph, and is expected to have the data shape shown below. (I expect this is a data shape that is already provided by Thingworx.)

IM_10769492_1-1738716789903.png

At this time, I am having trouble figuring out what data shape to set on the service editing screen...

IM_10769492_3-1738716956837.png

 

 

I was able to view the incoming data in a grid widget and use it by creating and applying the same Data Shape!

Announcements

Top Tags