<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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.ext-mb-text
        {mso-style-name:ext-mb-text;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.nx
        {mso-style-name:nx;}
span.o
        {mso-style-name:o;}
span.p
        {mso-style-name:p;}
span.kd
        {mso-style-name:kd;}
span.k
        {mso-style-name:k;}
span.s2
        {mso-style-name:s2;}
span.mi
        {mso-style-name:mi;}
span.EmailStyle28
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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 bgcolor=white lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Thank you geographika, I’ve
looked through the code on the link and tried to implement it to only show data
for one group (in this instance ‘groupA’) but I’m still
getting the data of all groups shown. Below is an example of my code for the
grid. When I try to implement this the grid still shows data for groupA, groupB,
and groupC. I apologise for asking for further help, I am not familiar with Ext
and web based programming is still relatively new for me. I assume that I am
not implementing the filter method in the right way and guess I may require a listener
or something along those lines. Could you or someone have a quick look at my
sample of code to see if you can see the immediate problem? <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Kind regards,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Barry<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>Temp_grid
= </span><b><span style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>new</span></b><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span><span
style='font-size:10.0pt;font-family:"Courier New"'>GeoExt</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>.</span><span
style='font-size:10.0pt;font-family:"Courier New"'>data</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>.</span><span
style='font-size:10.0pt;font-family:"Courier New"'>WMSCapabilitiesStore</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>({</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:72.0pt;text-indent:180.0pt;text-autospace:
none'><span style='font-size:10.0pt;font-family:"Courier New"'>url</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:#005C00'>"http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&namespace=cite"</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>,</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'> </span><span
style='font-size:10.0pt;font-family:"Courier New"'>autoLoad</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:#800040'>true</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'>
</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>});<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:#5C5C5C'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>Temp_grid</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C'>.filter(‘name’,’groupA’,true,true);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:#5C5C5C'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><b><span style='font-size:10.0pt;
font-family:"Courier New";color:#0000C0;background:white;mso-highlight:white'>var</span></b><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";background:white;mso-highlight:white'>grid</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#5C5C5C;background:white;mso-highlight:white'>=</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><b><span style='font-size:10.0pt;font-family:
"Courier New";color:#0000C0;background:white;mso-highlight:white'>new</span></b><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";background:white;mso-highlight:white'>Ext</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>.</span><span style='font-size:10.0pt;font-family:
"Courier New";background:white;mso-highlight:white'>grid</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>.</span><span style='font-size:10.0pt;font-family:
"Courier New";background:white;mso-highlight:white'>GridPanel</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>({</span><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'>
</span><span style='font-size:10.0pt;font-family:"Courier New";background:white;
mso-highlight:white'>height</span><span style='font-size:10.0pt;font-family:
"Courier New";color:#5C5C5C;background:white;mso-highlight:white'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#004080;background:white;mso-highlight:white'>150</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>,</span><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:
white'>width</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#5C5C5C;background:white;mso-highlight:white'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#004080;background:white;mso-highlight:white'>200</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>,</span><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'>
</span><span style='font-size:10.0pt;font-family:"Courier New";
background:white;mso-highlight:white'>renderTo</span><span style='font-size:
10.0pt;font-family:"Courier New";color:#5C5C5C;background:white;mso-highlight:
white'>:</span><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:#005C00;background:
white;mso-highlight:white'>'capgrid'</span><span style='font-size:10.0pt;
font-family:"Courier New";color:#5C5C5C;background:white;mso-highlight:white'>,</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'>
</span><span style='font-size:10.0pt;font-family:"Courier New";
background:white;mso-highlight:white'>viewConfig</span><span style='font-size:
10.0pt;font-family:"Courier New";color:#5C5C5C;background:white;mso-highlight:
white'>:</span><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>{</span><span style='font-size:10.0pt;font-family:
"Courier New";background:white;mso-highlight:white'>forceFit</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>:</span><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:#800040;background:
white;mso-highlight:white'>true</span><span style='font-size:10.0pt;font-family:
"Courier New";color:#5C5C5C;background:white;mso-highlight:white'>},</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'>
</span><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:green;background:white;
mso-highlight:white'>//wms store went here before</span><span style='font-size:
10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'>
</span><span style='font-size:10.0pt;font-family:
"Courier New";background:white;mso-highlight:white'>store</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>:</span><span style='color:#1F497D'> Temp_grid</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>,</span><span style='font-size:10.0pt;font-family:
"Courier New";color:#5C5C5C'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:
white'>columns</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#5C5C5C;background:white;mso-highlight:white'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#5C5C5C;background:white;mso-highlight:white'>[{</span><span
style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:
white'>header</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#5C5C5C;background:white;mso-highlight:white'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#005C00;background:white;mso-highlight:white'>"Name"</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>,</span><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:
white'>dataIndex</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#5C5C5C;background:white;mso-highlight:white'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#005C00;background:white;mso-highlight:white'>"title"</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>,</span><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext;background:white;mso-highlight:white'> </span><span
style='font-size:10.0pt;font-family:"Courier New";background:white;mso-highlight:
white'>sortable</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#5C5C5C;background:white;mso-highlight:white'>:</span><span
style='font-size:10.0pt;font-family:"Courier New";color:windowtext;background:
white;mso-highlight:white'> </span><span style='font-size:10.0pt;font-family:
"Courier New";color:#800040;background:white;mso-highlight:white'>true</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#5C5C5C;background:
white;mso-highlight:white'>}]</span><span style='font-size:10.0pt;font-family:
"Courier New";color:#5C5C5C'>});</span><span style='font-size:10.0pt;
font-family:"Courier New";color:windowtext'><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> users-bounces@geoext.org
[mailto:users-bounces@geoext.org] <b>On Behalf Of </b>geographika<br>
<b>Sent:</b> 18 November 2010 12:08<br>
<b>To:</b> users@geoext.org<br>
<b>Subject:</b> Re: [Users] GeoExt.data.WMSCapabilitiesStore question<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>There is a filter property on the store class from which
GeoExt.data.WMSCapabilitiesStore inherits. <br>
<br>
<span class=ext-mb-text><a
href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store"
target="_blank">http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store</a></span><br>
<br>
<br>
On 18/11/2010 12:05, Evans, Barry wrote: <o:p></o:p></p>
<p class=MsoNormal>Hi there,<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>I am using the GeoExt.data.WMSCapabilitiesStore to
display layer data contained within a namespace. The problem I have is that I
now have too many layers within the grid which will overwhelm the user. Is it
possible to apply a filter to the grid so that a user can only see layers, that
for instance have a specific unique user ID? I see a similar feature in the
layertree example in the geoext documentation and which is shown below but I
cannot figure out similar process for grid panel.<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Kind regards,<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Barry<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Email: <a href="mailto:be208@exeter.ac.uk">be208@exeter.ac.uk</a><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Layertree filter example<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>loader:
{</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
filter: function(record) {</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
return record.get("layer").name.indexOf("Tasmania") !== -1</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
}</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
}</span><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a
href="mailto:Users@geoext.org">Users@geoext.org</a><o:p></o:p></pre><pre><a
href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
</div>
</body>
</html>