Proxy Filemanager Branch

We are trying to proxy the filemanager branch handler.

const getItemProxy = {
      $proxy: true,
      load:function(view, params){
        console.log('source = ', view, params);
        return webix.ajax(fileServiceUrl, params);
      }
    };
// ...
this.ui = window.webix.ui({
      view: 'filemanager',
      handlers: {
        branch: getItemProxy,
      },

I can see the handler being called and the network request being called. But for some reason, we cant get the data returned back into the webix view.

Hey @acurtis, they code you’ve provided will issue a GET request, while the handler expects to receive a POST request instead, which is why you should explicitly state an AJAX POST request:

const getItemProxy = {
      $proxy: true,
      load:function(view, params){
        console.log('source = ', view, params);
        return webix.ajax().post(fileServiceUrl, params);
      }
    };

Here is a live sample with this small tweak: https://snippet.webix.com/k7rlr9i4.

@Dzmitry Ah. Sorry, I should have looked at more carefully. Many thanks!