<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I try to control the minimum number of characters entered in a GeocoderComboBox befor the combobox gets filled with suggestions. The combobox is within an item in a bbar and I set the option right after setting the xtype.
As far as I can see from the documentation the default value is set the 3, but even if I do not set the minChar option at all the combobox will be filled with suggestions right after I punched in the first character.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there anything specific that I am missing?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance for your replies,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Tom<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">bbar: [{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> xtype: "gx_geocodercombo",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> hideTrigger: true,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> emptyText: 'Type address here',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> minChars: 4,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> width: 350,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> layer: locationLayer,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> queryParam: "CQL_FILTER",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> store: new Ext.data.Store({<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> reader: new GeoExt.data.FeatureReader({}, [<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> {name: 'name', mapping: 'search'},<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> {name: 'no_mod', mapping: 'no_mod'},<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> {name: 'pm_mod', mapping: 'pm_mod'},<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> {name: 'bounds', convert: function(v, feature) {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> return feature.geometry.getBounds().toArray();<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }},<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> {name: "lonlat", convert: function(v, feature) {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> return feature.geometry.getBounds().toArray();<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ]),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> proxy: new GeoExt.data.ProtocolProxy({<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> protocol: new OpenLayers.Protocol.Script({<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> url: "http://server:port/geoserver/wfs",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> callbackKey: "format_options",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> callbackPrefix: "callback:",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> params: {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> service: "WFS",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> version: "1.1.0",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> srsName: "EPSG:4326",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> maxFeatures: 10,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> request: "GetFeature",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> typeName: "SYS:test_900913_utf8",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> outputFormat: "json"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> })<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> })<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">}]<o:p></o:p></span></p>
</div>
</body>
</html>