Skip to main content
Aug 2, 2018 10:17 AM UTC
Solved

Display Datatable in Mashup

Hi there,

How to display a datatable with its values in Mashup? And also how can I edit the values and add/remove the rows also in the datatable? 

vislaAnswer
Aug 2, 2018 4:12 PM UTC

Hello!

 

DataTable Things have Services to handle the data they contain, for example:

AddDataTableEntries

GetDataTableEntries

UpdateDataTableEntries

DeleteDataTableEntry

 

You might want to use those snippets as example to create your own Services for your DataTable.

Then you can use a Grid/Grid Advanced widget to display the values from your DataTable (you can use for example the GetDataTableEntries).

 

I hope that helps!

Vanessa

3 replies

vislaAnswer
Aug 2, 2018 4:12 PM UTC

Hello!

 

DataTable Things have Services to handle the data they contain, for example:

AddDataTableEntries

GetDataTableEntries

UpdateDataTableEntries

DeleteDataTableEntry

 

You might want to use those snippets as example to create your own Services for your DataTable.

Then you can use a Grid/Grid Advanced widget to display the values from your DataTable (you can use for example the GetDataTableEntries).

 

I hope that helps!

Vanessa

Aug 3, 2018 6:24 AM UTC

Hi Vanessa,

 

Thank you so much for the update. Really appreciate it. I'm able to display the data in the grid now. My next task is to add a new row and add/edit/update the existing data in the table. How can i perform that? I would be very thankful if you could help me to solve this. Thanks in advance. 

 

Aug 3, 2018 3:16 PM UTC

Hello!

 

I think the update I have just entered for this another thread should help you 🙂

https://community.ptc.com/t5/ThingWorx-Developers/How-to-perform-the-following-editable-grid/m-p/564460/highlight/false#M30260

 

Have a great weekend!

Vanessa