<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Eric an dlist,<br><br>thanks for your feedback.<br>Iīm already have a function getAttributes(node) which makes a Getfeatureinfo request (having WMS layers) depending on node.layer.params.LAYERS on users click. <br>My store is defined like:<br>var attributeStore = new GeoExt.data.FeatureStore({<br> fields: [{name: ......, type: 'string'}, {...}],<br> proxy: new GeoExt.data.ProtocolProxy[{<br> protocol: new OpenLayers.Protocol.WFS({<br><span> url: "<a target="_blank" href="http://xxx/geoserver/wfs">http://xxx/geoserver/wfs</a>",</span><br>
featureNS: "xxx"<br> ...<br><span> schema: "<a target="_blank" href="http://xxx/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename">http://xxx/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename</a>..."</span><br> })<br> }),<br> autoLoad: true<br>});<br><br>I want to know if the layer (node) has knowledge about the preconfigured store (so I can use somethink like node.layer.store). Or is this method more difficult than your approach with WFS? I don`t exactly know what you mean with:<br>"If you use specific feature services then you can either define your
schemas<br>in the JavaScript code or implement specific
DescribeFeatureType-like services."<br>Can you please clarify?<br><br>Thanks again for your help!<br><br>Best regards<br>Sarah<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;"></span></b><br></font><br>On Tuesday, June 15, 2010, Sarah Schuessler <<a ymailto="mailto:sarah_flip@yahoo.de" href="mailto:sarah_flip@yahoo.de">sarah_flip@yahoo.de</a>> wrote:<br>> Hi list,<br>><br>> I have a featurestore<br>> loaded in at gridpanel for a layer. Now I want to change the<br>> featurestore if I change the layer at layerswitcher with 'radiochanged'.<br>> I think I have to preconfigure the store and the grid because data vary<br>> and load all the grids and stores behind (or unvisible) the selected<br>> layer store. How to fetch
those stores information depending on layerswitcher node?<br>> Any DONīTs?<br>> Are there perhaps any examples or tips?<br><br>Hi.<br><br>If your layers are WFS layers you'd typically use DescribeFeatureType<br>requests to get information regarding the schema of the layers. If you<br>use specific feature services then you can either define your schemas<br>in the JavaScript code or implement specific DescribeFeatureType-like<br>services.<br><br>Hope this answers your questions,<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a ymailto="mailto:eric.lemoine@camptocamp.com" href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br></div></div>
</div><br></body></html>