<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE type=text/css><!-- DIV {margin:0px;} --></STYLE>
<META content="MSHTML 6.00.6002.18357" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>use the proper search decorations on the field
name:</FONT></DIV>
<DIV><FONT face=Arial size=2>ex. 'bez__like'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>see:</FONT></DIV>
<DIV><A
title="http://api.geoext.org/1.0/docs/lib/GeoExt/widgets/form/SearchAction.html#GeoExt.form.SearchAction CTRL + Click to follow link"
href="http://api.geoext.org/1.0/docs/lib/GeoExt/widgets/form/SearchAction.html#GeoExt.form.SearchAction">http://api.geoext.org/1.0/docs/lib/GeoExt/widgets/form/SearchAction.html#GeoExt.form.SearchAction</A></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if you use a GeoExt.form.FormPanel and don't use a
filter convention on the name it is assumed that you want an EQUAL_TO
condition.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You also can set the wildcard flag and logical
operation in the options parameter when calling the search
function:</FONT></DIV>
<DIV><FONT face=Arial size=2>ex.
formPanel.search({wildcard:GeoExt.form.STARTS_WITH,logicalOp:OpenLayers.Filter.Logical.OR});</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the default logical operation is AND</FONT></DIV>
<DIV><FONT face=Arial size=2>if you use a LIKE comparison but don't set a
wildcard flag, then it acts just like an EQUAL_TO comparison</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour</FONT></DIV>
<DIV><FONT face=Arial size=2>Kestrel Computer Consulting</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT><FONT
face=Arial></FONT><FONT face=Arial></FONT><FONT face=Arial></FONT><FONT
face=Arial></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A
title="mailto:robertdbuckley@yahoo.com CTRL + Click to follow link"
href="mailto:robertdbuckley@yahoo.com">Robert Buckley</A> </DIV>
<DIV><B>Sent:</B> Tuesday, March 22, 2011 5:49 AM</DIV>
<DIV><B>To:</B> <A
title="mailto:users@geoext.org CTRL + Click to follow link"
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Users] Search tool in Geoext App</DIV></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman,new york,times,serif">I
have used the following code and get a good result, but the exact string has to
be entered. I know I need to somehow user a filter with LIKE but donīt know
where I should code this..Definate lack of examples.<BR><BR>could anone tell me
how I would basically use the LIKE filter and put the results into a
grid?<BR><BR>yours,<BR><BR>Rob<BR><BR>// search<BR>var formPanel = new
GeoExt.form.FormPanel({<BR>// renderTo:
"formpanel",<BR> protocol: new
OpenLayers.Protocol.WFS({<BR><SPAN>
url: "<A href="http://MyDomain:8080/geoserver/wfs"
target=_blank>http://MyDomain:8080/geoserver/wfs</A>",</SPAN><BR>
featureType: "wea_wgs84",<BR><SPAN>
featureNS: "<A href="http://MyDomain/postgis"
target=_blank>http://MyDomain/postgis</A>"</SPAN><BR>
}),<BR> region: "west",<BR><BR> width:
400,<BR> border: false,<BR> items:
[{<BR> xtype:
"textfield",<BR> name:
"bez",<BR> value:
"WF"<BR> }, {<BR>
xtype: "textfield",<BR> name:
"standort",<BR> value:
"Asse"<BR> }],<BR> listeners:
{<BR> actioncomplete: function(form,
action) {<BR>
// this listener triggers when the search
request<BR> //
is complete, the
OpenLayers.Protocol.Response<BR>
// resulting from the request is
available<BR>
// in
"action.response"<BR>
<BR> }<BR>
}<BR>});<BR><BR>formPanel.addButton({<BR> text:
"search",<BR> handler: function()
{<BR>
this.search();<BR> },<BR> scope:
formPanel<BR>});
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman,new york,times,serif"><BR>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"><FONT
face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">Von:</SPAN></B> Robert Buckley
<robertdbuckley@yahoo.com><BR><B><SPAN
style="FONT-WEIGHT: bold">An:</SPAN></B> users@geoext.org<BR><B><SPAN
style="FONT-WEIGHT: bold">Gesendet:</SPAN></B> Dienstag, den 22. März 2011,
8:10:23 Uhr<BR><B><SPAN style="FONT-WEIGHT: bold">Betreff:</SPAN></B> [Users]
Search tool in Geoext App<BR></FONT><BR>
<DIV
style="FONT-SIZE: 10pt; COLOR: rgb(64,0,127); FONT-FAMILY: times new roman,new york,times,serif">Hi,<BR><BR>I
am building a series of basic webviewers which will basically just load wms
intoa viewport and offer the user navigation tools, a quick zoom combobox,
legend panel and contents panel.<BR>I have come this far and it is now been
asked if I can build a simple search mechanism. <BR>I would like to offer the
user a combobox to first pick the layer, then the field, then then either enter
a word or get a list of entries coming from that field.<BR><BR>I believe I have
seen something similar in other apps and that it is possible to build something
like this, but I donīt know where to find any code examples.<BR><BR>Is it true
that this search would have to be based on wfs and that a search on wms isnīt
possible?<BR>Could anyone offer me any help regarding this search
mechanism?<BR><BR>thanks for any tips,<BR><BR>Robert<BR>
<DIV><BR></DIV></DIV><BR></DIV></DIV></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>