title: Filtering a ViewPanel Control
body: <p>I have a viewPanel control and I've added a edit box and a button that reads "Apply Filter" above my view.  If the user enters something I want to filter the view based on what is entered.  So let's say that the edit box is going to be used to filter the 'CompanyName' column of the view.  I've the following code in the "onclick" event under SSJS for my button.</p>
  
  <pre><code>var viewPanel1:com.ibm.xsp.component.xp.XspViewPanel = getComponent("viewPanel1");
  var domView:com.ibm.xsp.model.domino.DominoViewData = viewPanel1.getData();
  var filtervalue = getComponent('cmbCompanyName').getValue();
  domView.setKeys(filtervalue);
  </code></pre>
  
  <p>I don't understand how the setKeys knows that I'm filtering on the 'CompanyName' column just by me passing what the user entered.  The above code does not produce an error, it just doesn't produce the desired results.  If I can see 'my Company' in the view.  I enter 'my Company' in my edit box and then click the 'apply filter' button and the view is then completely blank.</p>
  
  <p>Any help appreciated.</p>