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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. 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
c_lowy
15-Moonstone
(To:SP_9715784)

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
c_lowy
15-Moonstone
(To:SP_9715784)

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 ?

Announcements