<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Tom,</p>
<p>The project variables should work fine in server context.</p>
<p>Are you sure that the QGIS server you use is really up-to-date?</p>
<p>The variable support in QGIS is relatively recent and if your server is an older version it probably doesn't support them.</p>
<p>Andreas</p>
<p>On 2016-02-26 17:34, Tom Palan wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">hi,<br /><br /> I was trying to implement dynamic setting of Expression Variables when handling server requests (Example use case: I want to render another logo in a composition map depending on a project-variable), as I got stuck testing the behaviour of expression variables in server-requests.<br /> I have a print composition map, where a label text is set to a project scope expression variable. When I execute the server request the label is not printed (or printed empty).<br /><br /> Does QGIS server not use expression variables defined at project level?<br /><br /> thanks,</div>
</blockquote>
<p> </p>
<div> </div>
</body></html>