<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>you should use the vendorParams property of OpenLayers.Control.WMSGetFeatureInfo to set any vendor specific parameters such as viewparams.</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br></div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Sep 5, 2012, at 11:13 AM, Simon Johnson <<a href="mailto:SJohnson@redcross.org.uk">SJohnson@redcross.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="MSHTML 6.00.5730.13" name="GENERATOR">
<div style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<div>Hello list,</div>
<div> </div>
<div>I have a WMSGetFeatureInfo control which is working correctly with my wms layers apart from when these layers make use of viewparams + sql view.  The viewparams are not included in the WMSGetFeatureInfo request url and so the default values are used and the wrong values are returned.  Is it expected behaviour for the viewparams to be not included and if so are there any suggestions for approaches to get the viewparams into the request?</div>
<div> </div>
<div>Thanks in advance</div>
<div> </div>
<div>Simon</div><br><br><p align="left"><font style="BACKGROUND-COLOR: #ffffff"><span style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><a href="http://www.redcross.org.uk/appealweek"><font color="#0000ff"></font></a></span></font></p><font style="BACKGROUND-COLOR: #ffffff">
</font><div><font style="BACKGROUND-COLOR: #ffffff"><span style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-bidi-font-size: 8.0pt"></span><font face="MS Sans Serif" size="1">
</font></font><div><font style="BACKGROUND-COLOR: #ffffff"><font face="MS Sans Serif" size="1"></font><font size="2"><font size="1"><span style="font-size: 9.5pt; font-family: Arial; ">
</span></font></font><div><font size="2"><font size="1"><font size="1"><span lang="EN-GB">
</span></font></font></font><div><font size="2"><font size="1"><font size="1"></font></font></font> <br class="webkit-block-placeholder"></div><div> <br class="webkit-block-placeholder"></div></div><p><font size="2"><font face="Tahoma"><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; ">This email is for the intended recipient only. It may contain information that is privileged, confidential and/or subject to copyright. If you are not the intended</span></font></font></p><font size="2">
<div>
<div><font face="Tahoma"><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "> recipient, please delete this email and any attachments and notify </span></font><font face="Tahoma"><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "> </span><u><span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Microsoft Sans Serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><a href="mailto:mailadmin@redcross.org.uk"><font color="#0000ff">mailadmin@redcross.org.uk</font></a></span></u></font><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma">. You may not present this message or any part of it to</font></span></div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma">another party without consent from the sender. </font></span></div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma"><br>Although the British Red Cross has taken steps to ensure this email and any attachments are virus-free, we do not accept any responsibility for viruses, or for </font></span></div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma">inaccurate or incomplete information or failure to deliver information. It is your responsibility to scan the email and any attachments to ensure they are virus-free.  </font></span></div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma"></font></span> </div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma">The British Red Cross may monitor the content of emails sent or received by its employees.</font></span></div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><font face="Tahoma">
<div><br>The British Red Cross Society, incorporated by Royal Charter 1908, is a charity registered in England and Wales (220949) and Scotland (SC037738). <br></div>
<div> </div>
</font><div><font face="Tahoma">The red cross emblem is a protective symbol, the use of which is restricted by international and national law. It may not be reproduced without prior authorisation. </font></div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "><a href="http://www.redcross.org.uk/standard.asp?id=35289"><font face="Tahoma" color="#0000ff">Click here for more information</font></a><font face="Tahoma">.</font></span></div>
<div><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif'; "></span> </div></span></div>
</font></font><p><font style="BACKGROUND-COLOR: #ffffff"><font size="2"></font></font><font style="BACKGROUND-COLOR: #ffffff"><font size="2"><span class="Normal--Char" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial', 'Arial'"> <br></span></font></font></p></div></div><font style="BACKGROUND-COLOR: #ffffff">
</font><p align="left"><font style="BACKGROUND-COLOR: #ffffff"><font size="2"><br><br><br><br>This message has been scanned for viruses by </font></font><a href="http://www.blackspider.com/"><font style="BACKGROUND-COLOR: #ffffff" size="2">BlackSpider MailControl</font></a></p>
</div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>