[Geoserver-users] Search (convert user input to upper case)

Hi,

I’ve put together some code to do a search against a table in PostgreSQL database.

When the user submits a search, I want to convert the text (from the text box) to upper case to match the upper case values in the table.

Is there a way to convert what the user enters into the box to upper case and then use it in the formPanel.search() in the below code snippet?

Thanks for any ideas you might have!

R.D. Harles

// Search box & button

formPanel = new GeoExt.form.FormPanel({

title: “Search”,

width: 350,

region: “west”,

buttonAlign : ‘right’,

protocol: protocol,

items: [{

xtype: “textfield”,

id: “textBox”,

name: “Name__like”,

value: ‘’,

listeners: {

specialkey: function(f,e){

if (e.getKey() == e.ENTER) {

formPanel.search();

}

}

}

}],