Datatable add row updateFromResponse

Hello,

I added the updateFromResponse to my datatable according to the documentation here: https://docs.webix.com/api__dataprocessor_updatefromresponse_config.html

However, it seems like it does not work for tables that have math functions that depends on other columns.

The ID is updated due to the updateFromResponse, but the triggers and depends for the newly added row is not updated. So if I try to edit the table without refreshing the page, I run into a TypeError.

How do I resolve this?

Best,
Linda

Comments

  • edited May 26

    Hello @ljing ,
    I can confirm the issue. Thank you for your report!
    The main problem is that the math is strictly tied to the record IDs.
    There will be no error if:
    -don't update ID when responding from server
    - use updateFromResponse for other fields
    Please check the next snippet:
    https://snippet.webix.com/t1it2y6v
    In the example above, there is no server request, but the response is simulated through return webix.promise.resolve(response)

    If you still have errors please share a snippet of your code.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion