• How to filter dojo grid?

    By Anil Vartak 1 decade ago

    How do we filter the dojo grid that gets its data from the REST service. I have the grid loaded with data from the view correctly from the REST service component. I also have on the xpage a dropdown where users can select a value that's a dbcolumn of one of the columns in the same view.  I've tried setting the REST service keys value to viewScope.filterCat01 (which is the variable for the combo box), and I've also tried setting the event (BY is the field/column name) but nothing seems to filter it. Any ideas?

    var filterValue = XSP.getElementById("#{id:comboBox2}").value;
    var grid = dijit.byId("#{id:djxDataGrid1}");
    grid.filter({ By: filterValue},true);