Skip to main content
14-Alexandrite
January 18, 2023
Solved

How to clear EditedTable object

  • January 18, 2023
  • 1 reply
  • 781 views

Hi Developers,


I use gridadvanced widget to show and allow users to edit data like the below.

the column highlight with red backgroud is editable.

YoshihikoN_0-1674027748320.png

 

we can see "editedtable" object has records after we edit records.


I've expected the records in the "editedtable" object will be automaticaly cleared once we changed Data of the gridadvanced, however it still exists after the change.

how can we clear "editedtable" object ?

 

YoshihikoN_1-1674027801963.png


here the below shows you our ThingWorx version.

YoshihikoN_2-1674028803534.png
Thanks and Regards

 

 

Best answer by jensc

Hello,

 

I'm not sure I completely understand your issue.

After you have done an edit of the grid (and I guess also pushed this change to a service) the editedTable object of the advanced grid still contains the data of the last edited row/rows?

 

I don't see how this causes an issue. Are you using this object to display the edited data in some way?

 

There is a "Reset" function on the advanced grid that you might be able to use to reset the object. However it likely also resets everything else.

 

Regards,

Jens

1 reply

jensc17-PeridotAnswer
17-Peridot
January 18, 2023

Hello,

 

I'm not sure I completely understand your issue.

After you have done an edit of the grid (and I guess also pushed this change to a service) the editedTable object of the advanced grid still contains the data of the last edited row/rows?

 

I don't see how this causes an issue. Are you using this object to display the edited data in some way?

 

There is a "Reset" function on the advanced grid that you might be able to use to reset the object. However it likely also resets everything else.

 

Regards,

Jens