<div dir="ltr">Did you try adding it to the url, like this: <a href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&service=wfs" target="_blank" style="font-family:'times new roman','new york',times,serif;font-size:16px">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&service=wfs</a>&route=6</div>
<div class="gmail_extra"><br clear="all"><div><br>--<br><br>Med venlig hilsen / Kind regards<br><br>Tue Topholm<br>Sugee<br>Tlf: +45 32 13 32 32<br>W: <a href="http://www.sugee.dk" target="_blank">http://www.sugee.dk</a></div>

<br><br><div class="gmail_quote">2013/8/12 Saka Royban <span dir="ltr"><<a href="mailto:sakaroyban@yahoo.com" target="_blank">sakaroyban@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Hi all</div><div>I'm using Mapserver + OpenLayers. Now i wanna have a dynamic layer using variable substitution feature available in Mapserver (Is there any other solution?). I'm using following code: <br>
</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">                    layer3 = new OpenLayers.Layer.Vector("Neighborhoods passed", {<br>
                    strategies: [new OpenLayers.Strategy.Fixed()],<br>                    protocol: new
 OpenLayers.Protocol.WFS({<br>                        url:  "<a href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&service=wfs" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms101/htdocs/ms101.map&service=wfs</a>",<br>
                        featureType: "subway_stations2",<br>                                                //featureNS: "<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>",  <br>
                                           
     //geometryName: "msGeometry",<br>                                                //featurePrefix: "ms",<br>                                                srsName: "EPSG:26918",     // Projection to be returned data in it.<br>
                                                //maxFeatures: "300",          // maxFeatures to be returned.<br>   
                                             version: "1.1.0",<br>                                                route: '6'<br>                                            }),                        <br>
                         });</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
'route' parameter is defined in Data parameter of mapfile and i'm sure it works (I've tested this via GET request and it returns a correct GML). But in don't know how to say to openlayers to add this additional parameter to request. Adding "route: '6'" to the last line before ending parenthesis also doesn't work.</div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
Any idea? Is it possible at all?</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">or any better way to meet the same goal? </div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">Regards</div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>