Skip to main content
1-Visitor
August 2, 2018
Solved

Display Datatable in Mashup

  • August 2, 2018
  • 3 replies
  • 3451 views

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? 

Best answer by visla

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

visla14-AlexandriteAnswer
14-Alexandrite
August 2, 2018

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

1-Visitor
August 3, 2018

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. 

 

14-Alexandrite
August 3, 2018

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