Datatable Response: [EMPTY DATA]

Hi,

I have a proxy for loading a datatable, if I have a empty response I get
“Response: [EMPTY DATA]” . How do I cancel the load so I don’t get this
error message?

-Tomas

Hello, @TomasF
The error means that there is no data for a widget. And it expects some data to be when loading, even if it is an empty [] in response. To avoid this error, you can:

  • send an empty [] as response from a server
  • or
  • check what comes from the server and if there is no data return [] in a load function as in the example.
  • 1 Like