Proxy strips urlparameters?

Hi, I am using this proxy code:

webix.proxy.authProxy = webix.extend({
    load:function(view, callback){
        webix.ajax().headers({
            "Authorization": "JWT "+ current_user.getAccessToken()
        }).get(this.source).then(function(data){
            var records = data.json();
            webix.ajax.$callback(view, callback, "", records, -1);
        });
    }
}, webix.proxy.rest);

Then, when I configure a combo with
{ view:“combo”, name:“test”, label:“tester”, value:"", suggest:“authProxy->http://localhost:8000/api/tester/”},

Unfortunately this seems to strip the filter url paramers (?filter[value]=searchterm) from the request.

What am I missing?

R

Yep, url params for serverside filtering and sorting are added only for non-proxy calls. But you can easily add them in your code:

load:function(view, callback){
   //+ your auth code somewhere
   var url = this.source;

   if (view.getState){
	var state = view.getState(); 
        var params = [];
	if (state){
         if (state.sort)
            params.push("sort["+state.sort.id+"]="+
              encodeURIComponent(state.sort.dir));
         if (state.filter)
            for (var key in state.filter)
               params.push("filter["+key+"]="+
                encodeURIComponent(state.filter[key]));
         if(params.length){
           url = url+((url.indexOf("?")==-1)?"?":"&");
           url += params.join("&");
         }
     }
   }
   webix.ajax(url, callback, view);
}