
Untitled
By: a guest on
Apr 24th, 2012 | syntax:
None | size: 0.77 KB | hits: 13 | expires: Never
Building an Xpage for searching issue
[foreignCompany] CONTAINS Komp
function generateQuery(strforeignCompany, strcountryOfApplication , strcountryOfApplication2){
var strQuery = new java.lang.StringBuffer();
if(strForeignCompany != null && !"".equals(strForeignCompany)){
strQuery.append("[ForeignCompany] contains");
strQuery.append(strForeignCompany);
}
if(strcountryOfApplication != null && !"".equals(strcountryOfApplication )){
strQuery.append("[countryOfApplication ] contains");
strQuery.append(strcountryOfApplication );
}
if(strcountryOfApplication2!= null && !"".equals(strcountryOfApplication2)){
strQuery.append("[countryOfApplication2] contains");
strQuery.append(strcountryOfApplication2);
}
return strQuery.toString();
}