Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xp:this.search><![CDATA[#{javascript:
- var tmpArray = new Array("");
- var cTerms = 0;
- if(sessionScope.foreignCompany != null & sessionScope.foreignCompany != "") {
- tmpArray[cTerms++] = "[foreignCompany] CONTAINS \"" + sessionScope.foreignCompany + "\")";
- }
- if(sessionScope.ourCompany != null & sessionScope.ourCompany != "") {
- tmpArray[cTerms++] = "[ourCompany] CONTAINS \"" + sessionScope.ourCompany + "\")";
- }
- if(sessionScope.countryOfApplication != null & sessionScope.countryOfApplication != "") {
- tmpArray[cTerms++] = "[countryOfApplication] CONTAINS \"" + sessionScope.countryOfApplication + "\")";
- }
- if(sessionScope.countryOfApplication2 != null & sessionScope.countryOfApplication2 != "") {
- tmpArray[cTerms++] = "[countryOfApplication2] CONTAINS \"" + sessionScope.countryOfApplication2 + "\")";
- }
- qstring = tmpArray.join(" AND ").trim();
- sessionScope.queryString = qstring; // this just displays the query
- return qstring // this is what sets the search property}]]></xp:this.search>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement