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

DeleteDataTableEntryByKey is not working

SOLVED
SP_9715784
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

Re: DeleteDataTableEntryByKey is not working

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

Re: DeleteDataTableEntryByKey is not working

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

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.