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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

DeleteDataTableEntryByKey is not working

SP_9715784
11-Garnet

DeleteDataTableEntryByKey is not working

I Have binding as shown in the Figure

SP_9715784_0-1611600102891.png

Problem:

When I Press the button 'Delete', the values in the GRID or not Deleting..

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SP_9715784,

 

Which version of ThingWorx are you working on ?

 

Did you make sure that:

- the Datatable is based on a Datashape with a primary key ?

- the key value of the row you want to delete is passed as input parameter to the DeleteDataTableEntryByKey service ?

- you trigger the service populating your grid again after deletion (using the ServiceInvokeComplete event from DeleteDataTableEntryByKey) so that the grid content is refreshed and you can verify the row was indeed deleted ?

View solution in original post

1 REPLY 1

Hi @SP_9715784,

 

Which version of ThingWorx are you working on ?

 

Did you make sure that:

- the Datatable is based on a Datashape with a primary key ?

- the key value of the row you want to delete is passed as input parameter to the DeleteDataTableEntryByKey service ?

- you trigger the service populating your grid again after deletion (using the ServiceInvokeComplete event from DeleteDataTableEntryByKey) so that the grid content is refreshed and you can verify the row was indeed deleted ?

Top Tags