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.
In the above image, ptcs-grid-5 has various option but not All Data. Appreciate help in advance.
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.
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.