title: Error (EvaluationException) on executing setSelectionFormula in XPage - Javascript code
body: <p>When using XPages in Lotus Domino Designer, I encounter the following error (displayed in log file) on trying to set the view formula dynamically. 
  <strong>com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript computed expression</strong></p>
  
  <p>The following code fails ... </p>
  
  <pre><code>var helpview:NotesView = db.getView(viewNm); 
  
  var strQS:string= sessionScope.searchKey; 
  
  helpview.setSelectionFormula(strQS);
  </code></pre>
  
  <p>Error takes place at the setSelectionFormula line. strQS is the string for view selection formula.</p>