<div dir="ltr">Hi Jeff,<div><br></div><div>thanks a lot!</div><div>It really works with your validation expression.</div><div><br></div><div>Looking forward to see you in Bonn!</div><div>Eva</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-11 20:50 GMT+02:00 Jeff McKenna <span dir="ltr"><<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Eva,<br>
<br>
Testing with MS4W 3.1.4 (MapServer 7.0.1) on Windows, I am able to pass "&ma_name=testing" in the url and the resulting GetCapabilities response correctly replaces that in the wms_onlineresource value.  Note that my validation block is slightly different than yours:<br>
<br>
  WEB<br>
    VALIDATION<br>
      "ma_name" "[a-z]+"<br>
    END<br>
    METADATA<br>
      "wms_onlineresource" "<a href="http://url/cgi-bin/gp_%ma_name%_com_wms" rel="noreferrer" target="_blank">http://url/cgi-bin/gp_%ma_name%_com_wms</a>?"<br>
      ...<br>
    END<br>
    ...<br>
  END<br>
<br>
<br>
-jeff<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" rel="noreferrer" target="_blank">http://www.gatewaygeomatics.com/</a><span class=""><br>
<br>
<br>
<br>
On 2016-07-11 12:39 PM, Eva Jelínková wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear mapserv people,<br>
<br>
does anybody has an experience with runtime substitution in MAP->WEB:<br>
METADATA section of mapfile (MapServer 7)?<br>
<a href="http://mapserver.org/cgi/runsub.html#parameters-supported" rel="noreferrer" target="_blank">http://mapserver.org/cgi/runsub.html#parameters-supported</a><br>
<br>
I am trying to substitute part of 'wms_onlineresource' value, using<br>
default value in VALIDATION. GetCapabilities request gives me string<br>
with %name_of_parameter% in the URL.<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
<br></span>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div><br></div>