filter mode

$$("order-form").addView({     view:"combo", name:"station", placeholder:"select", id:"station",  options:{
    			      				       	 		view:"suggest", 
                                    				
    										filter:function(obj, value){
                								return obj.name.toLowerCase().indexOf(value.toLowerCase()) != -1;
                								},
                  
                  					
    										body:{ 
       										 view:"list",
       										 data:marks,
										 id:"marka3",
      							        		 template:"code #code# , #name#",
      							       			  yCount:7, 	datatype:"myjson2",

											}, 


										}, 

how make filter with code and name together ? now filter only .name thx.

up? how filter #code# and #name# together?

Try to use OR operator:

filter:function(obj, value){
        var match = value.toLowerCase();
        return obj.name.toLowerCase().indexOf(match) != -1 || obj.code.toLowerCase().indexOf(match) != -1;
}

http://webix.com/snippet/0046a3a5