PDA

View Full Version : toUpperCase ?


gwlucas71494
05-31-2009, 05:25 PM
I have a Data Assist generated search and I would like to convert the passed variables into uppercase. I'm not sure exactly where to do it within the Data Assist-generated code. The pertinent code on my results page looks like this:

WADbSearch1.keywordComparison(KeyArr0,"" + String(Request.Form("fldKeyword")) + "","","Includes",",%20","%20","%22","%22",0);

WADbSearch1.keywordComparison(KeyArr1,"" + String(Request.Form("fldCity")) + "","AND","Includes",",%20","%20","%22","%22",0);

WADbSearch1.keywordComparison(KeyArr2,"" + String(Request.Form("fldState")) + "","AND","Includes",",%20","%20","%22","%22",0);

WADbSearch1.keywordComparison(KeyArr3,"" + String(Request.Form("fldZip")) + "","AND","Includes",",%20","%20","%22","%22",0);

Can I add a toUpper call somewhere within this code? Or do I need to edit something else, like perhaps the HelperJS file?

I'm working in ASP with JavaScript and querying an Oracle database. Thanks for any help.

Ray Borduin
06-01-2009, 07:52 AM
.toUpperCase()

is the javascript method of the string object.... so it would look like:

WADbSearch1.keywordComparison(KeyArr0,"" + String(Request.Form("fldKeyword")).toUpperCase() + "","","Includes",",%20","%20","%22","%22",0);

gwlucas71494
06-02-2009, 10:55 PM
Thanks Ray. Exactly what I was looking for.