thanks Paul, I will try that later...<br><br>Tómas,<br><br>You have to create an array for the options:<br><br>var options = {};&nbsp;&nbsp;&nbsp; <br>options.selectionType = &#39;INTERSECTS&#39;;<br>options.geometry = &quot;POLYGON((-75.58840579710144 -10.755072463768112,
-61.16086956521739 -10.755072463768112, -61.16086956521739
0.005797101449276809, -75.58840579710144 0.005797101449276809,
-75.58840579710144 -10.755072463768112))&quot;;<br>&nbsp;options.maxFeatures = 0;<br>&nbsp;options.filter = &quot;gid=1&quot;<br>&nbsp;options.layers = &#39;States&#39;;<br><br><b>BUT, </b>Fusion doesn&#39;t&nbsp; use the options.filter yet... to make a query by filter you need to change a line code of the query.php file (Fusion\mapserver|mapguide\php\query.php):<br>
search for the line bellow at the code (it only query by shape):<br>if (@$oLayer-&gt;queryByShape($oSpatialFilter) == MS_SUCCESS) {<br><br>change it to:<br>if (@$oLayer-&gt;queryByAttributes($field, $filter, MS_MULTIPLE) == MS_SUCCESS) {<br>
<br><br><br>see you<br><br><br><br><div class="gmail_quote">On Fri, Jun 6, 2008 at 6:30 AM, Tómas Guđmundsson &lt;<a href="mailto:tomas@snertill.is">tomas@snertill.is</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In related matters, does anyone know of a resource that can tell me how to query? I do have a certain layer or a certain map I want to query against, but I don&#39;t know the format of a query string for map.query(). I see that Paul sent some options so maybe I need an options variable to search by ? Is there anywhere in the fusion code where this is done so I can see what parameters options has ?<br>

<br>
Rgds<br>
<font color="#888888">Tómas<br>
</font><div><div></div><div class="Wj3C7c"><br>
-----Original Message-----<br>
From: <a href="mailto:fusion-users-bounces@lists.osgeo.org">fusion-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fusion-users-bounces@lists.osgeo.org">fusion-users-bounces@lists.osgeo.org</a>] On Behalf Of Paul Spencer<br>

Sent: 6. júní 2008 01:37<br>
To: Vitor Fortunato<br>
Cc: <a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
Subject: Re: [fusion-users] calling query() method from another window<br>
<br>
Hi Vitor,<br>
<br>
you need to get the map in a slightly different way:<br>
<br>
var map = window.opener.Fusion.getWidgetById(&#39;map&#39;); //or whatever<br>
your map div id is<br>
map.query(options);<br>
<br>
Cheers<br>
<br>
Paul<br>
<br>
On 5-Jun-08, at 8:40 PM, Vitor Fortunato wrote:<br>
<br>
&gt; Hi list!<br>
&gt;<br>
&gt; I am trying to call the query() method from a new window opened by a<br>
&gt; widget.<br>
&gt; In execute method of the widget I have the code bellow:<br>
&gt;<br>
&gt; execute : function() {<br>
&gt; &nbsp; &nbsp; var Url = &#39;qb.html&#39;;<br>
&gt; &nbsp; &nbsp; winQb = window.open(Url, &#39;New window&#39;,<br>
&gt; &#39;toolbar<br>
&gt; =<br>
&gt; no<br>
&gt; ,menubar<br>
&gt; =<br>
&gt; no<br>
&gt; ,location<br>
&gt; =no,resizable=yes,status=yes,scrollbars=yes,width=900,height=540&#39;);<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; when the widget is executed it pops up a new window. I am trying to<br>
&gt; execute the query method from this new window. I&#39;ve tried to code<br>
&gt; something, but still with no success:<br>
&gt; code of the new window:<br>
&gt; &lt;script&gt;<br>
&gt; &nbsp; &nbsp; var options = {};<br>
&gt; &nbsp; &nbsp; options.filter = &#39;gid in (1, 2, 3)&#39;;<br>
&gt; &nbsp; &nbsp; options.layers = &#39;Estados&#39;;<br>
&gt;<br>
&gt; &nbsp; &nbsp; window.opener.Fusion.Widget.Map.query(options);<br>
&gt;<br>
&gt; &nbsp; &nbsp; //also tried to get the caller widget:<br>
&gt; &nbsp; &nbsp; // var myWidObj = new window.opener.Fusion.Widget.Pqb();<br>
&gt; &lt;/script&gt;<br>
&gt;<br>
&gt; thanks in advance<br>
&gt; _______________________________________________<br>
&gt; fusion-users mailing list<br>
&gt; <a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
<br>
<br>
__________________________________________<br>
<br>
 &nbsp; &nbsp;Paul Spencer<br>
 &nbsp; &nbsp;Chief Technology Officer<br>
 &nbsp; &nbsp;DM Solutions Group Inc<br>
 &nbsp; &nbsp;<a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br>
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
</div></div></blockquote></div><br>