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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Possible ways to bind infotable data to service as input.

DeepakParihar
6-Contributor

Possible ways to bind infotable data to service as input.

I am working on export Infotable data to excel file. But to send infotable data I am using SelectedRows property of infotable by selecting the checkboxes in the grid widget and bind it to input to custom service developed in Thingworx Extension.  What I need is, instead of SelectedRows property, is there a way to send all data to service without checkbox. Refer the below screenshot.  

 

DeepakParihar_1-1718707846455.png

 

In the above image, ptcs-grid-5 has various option but not All Data. Appreciate help in advance. 

4 REPLIES 4

Most probably you have a service whose result you bound to the Data field of the grid. Bind that result (All Rows) to the other service you want to call.

DeepakParihar
6-Contributor
(To:Rocko)

Thanks for your reply. The solution does not fit in to our use case. 

The use case is, we are developing a common solution to export infotable grid data to excel using custom extension service. In infotable User can manipulate the data. for ex: edit the data, grid contains addional columns with some default value and also user can rearrange the column sequence in any order, the same should be exported to excel file. 

 

On that note, is there a option to pass the all data of infotable to a service.

Not sure this is possible. You have to separate between presentation and model data. Whatever you do on the grid is unknown to the server unless you write it back by calling a (server-side) service. The order of the columns e.g. is something purely controlled by the (grid) widget, it is most probably not reflected in the infotable data.

 

That being said, you can try to use this widget to select all rows. maybe that supports your usecase.

https://github.com/doubleSlashde/InfotableInspectorWidgetTWX

 

Hello @DeepakParihar

 

It looks like you have some responses from a community member. If it helped to answer your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Community Moderation Team.

Announcements


Top Tags