<div dir="ltr">Hello,<br>I am a fresh Zope Explorer. I was trying to call an SQL Query that requires an argument in a DTML Method that would be called with an argument passed in the URL. The Query looks more or less like this:<br>
<br>SELECT Uni_Name,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uni_Latitude, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uni_Longitude <br>FROM universities<br>WHERE Uni_Code = &lt;dtml-sqlvar givenCode type=&quot;string&quot;&gt; AND<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Uni_Latitude != NULL<br><br>whilst the DTML Method consists of:<br>
&lt;markers&gt;<br>&lt;dtml-in expr=&quot;uniSingleByCode(givenCode=&#39;&lt;dtml-var uni_id&gt;&#39;)&quot;&gt;<br>&lt;mrk nm=&quot;&lt;dtml-var Uni_Name&gt;&quot; lat=&quot;&lt;dtml-var Uni_Latitude&gt;&quot; lng=&quot;&lt;dtml-var Uni_Longitude&gt;&quot;/&gt;<br>
&lt;/dtml-in&gt;<br>&lt;/markers&gt;<br><br><br>If I replace the &lt;dtml-var uni_id&gt; with an existing uni code, query works, but as it is, I get an empty XML (well, just &lt;markers&gt;&lt;/markers&gt; appear).<br>I am perfectly aware of the fact that the mistake I make must be trivial, but nevertheless I&#39;d like to ask for some enlightment.<br>
Best regards,<br>Olia<br></div>