Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.77 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Building an Xpage for searching issue
  2. [foreignCompany] CONTAINS Komp
  3.        
  4. function generateQuery(strforeignCompany, strcountryOfApplication , strcountryOfApplication2){
  5.     var strQuery = new java.lang.StringBuffer();
  6.  
  7.     if(strForeignCompany != null && !"".equals(strForeignCompany)){
  8.  strQuery.append("[ForeignCompany] contains");
  9.  strQuery.append(strForeignCompany);
  10.     }
  11.  
  12.  
  13.     if(strcountryOfApplication != null && !"".equals(strcountryOfApplication )){
  14.  strQuery.append("[countryOfApplication ] contains");
  15.  strQuery.append(strcountryOfApplication );
  16.     }
  17.  
  18.  
  19.     if(strcountryOfApplication2!= null && !"".equals(strcountryOfApplication2)){
  20.  strQuery.append("[countryOfApplication2] contains");
  21.  strQuery.append(strcountryOfApplication2);
  22.     }
  23.   return strQuery.toString();
  24.  }