Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Bug – Update data adding and deleting records

Answered
Ilaria asked 4 days ago

Hi, I would like to report two bugs (possibly related to the same issue) regarding the UpdateData method with ‘partial’ option.

About the second one: I found that in order to reproduce the issue

Thank you in advance!
Best regards,
Ilaria

2 answers

Public
Vera Didenko Flexmonster 2 days ago

Hello, Ilaria,
 
Thank you for reaching out to us and for providing details. 
 
We have managed to reproduce the issues on our end as well. 
Our team will provide the fix to these issues in the minor release with the ETA 30th of November. 
 
Please let us know if this would work for you.
 
Kind regards, 
Vera

Public
Vera Didenko Flexmonster 1 day ago

Hello, Ilaria,
 
Looking deeper, we have noticed that in the JSFiddle examples the mapping property contains a type: "delete" field.
If this field is removed, then the issues seem to be resolved: adding and deleting records works fine.
 
We have modified two of the examples for illustration: 

  1. Re-adding a deleted record: https://jsfiddle.net/flexmonster/ys387ugd/
    Please notice that for deleting a record only the id and "DeleteRow" fields are required, for example:
    function deleteRecord() {
    this.update([{
    "RowId": "0",
    "DeleteRow": true
    }]);
    }
  2. Adding and deleting records: https://jsfiddle.net/flexmonster/8mnp1764/

 
Could you please confirm if the same works fine on your end?
As mentioned before, our team will provide the fix so that the same will work when the type: "delete" field is present (ETA November 30th). 
 
Looking forward to your reply.
 
Kind regards, 
Vera

Please login or Register to Submit Answer