Hi. the below code returns data from servlet in json format.
How do i link the datatable to this data.
var msgtable = [webix.ajax(“getmsg”, function(text){
webix.message(text);
})];
Hi,
Please check the snippet: http://webix.com/snippet/eaa1a2a6
Hi Thank you.
I get the data in the popup, but the data table is blank with no headers or anything.
The data table is within a cell.
The result is displayed in the messagebox as follows.
[{“Message”:“You are behind”,“From”:“mzaaiman”}]
[{“Message”:“You are behind”,“From”:“johnd”}]
[{“Message”:“You are behind”,“From”:“carls”}]
just not getting the datatable working
webix.ajax methods are based on the promise API, i.e. if the promise is resolved, the data is parsed. So if the JSON is valid (it can cause the issue as well), there shouldn’t be any errors.
I still can’t reproduce it even with the same views hierarchy:
http://webix.com/snippet/5f3d89c9
Please check the related docs: http://docs.webix.com/desktop__data_loading.html#promiseapiindataloading
Could you please provide a snippet that will show the issue clearly?
I have tried all methods.
http://webix.com/snippet/3afb4236
This is the servlet that passes the data.
If i display the results in message it shows as follows.
[{“Message”:“You are behind”,“From”:“mzaaiman”}] [{“Message”:“You are behind”,“From”:“johnd”}] [{“Message”:“You are behind”,“From”:“carls”}]
if i set data: to the var that gets the servlet via ajax the table stays blank.
Hi. Problem is sorted thanks. problem was in the servlet.