<span>ahhh ajax. the secret deadly ninja of web apps.</span><br><br>
<div class="gmail_quote">On Thu, Feb 21, 2008 at 7:34 PM, Paul Spencer &lt;<a href="mailto:pagameba@gmail.com">pagameba@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The exception is corrupting the json formatted response so when<br>Query.php returns there is a (likely suppressed) javascript error that<br>
prevents Fusion from processing the selection and hence other widgets<br>from responding to it to load the selection.<br><br>Mike, we should be able to reproduce this with some of Jason&#39;s data.<br><br>Cheers<br><br>Paul<br>
<br>On 21-Feb-08, at 3:14 PM, Jonathan Manafi wrote:<br><br>&gt; This is the response from a query:<br>&gt;<br>&gt; Object not foundERROR: The specified object was not found.<br>&gt; The specified object was not found.<br>
&gt; Exception occurred in method GetItem at line 117 in file d:<br>&gt; \buildforgeprojects\mapguide_open_source_v2<br>&gt; .0\build_22.4\mgdev\common\foundation\Data/NamedCollection.cpp<br>&gt; - GetItem line 117 file d:\buildforgeprojects<br>
&gt; \mapguide_open_source_v2.0\build_22.4\mgdev\common\foundation<br>&gt; \Data/NamedCollection.cpp<br>&gt; general exceptiongeneral exception{&quot;hasSelection&quot;:true,&quot;extents&quot;:<br>&gt; {&quot;minx&quot;:-1841749.109647,&quot;miny&quot;:10697190<br>
&gt; .314625,&quot;maxx&quot;:-1611134.1984211,&quot;maxy&quot;:10745845.651758},&quot;layers&quot;:<br>&gt; [&quot;obstructions&quot;,&quot;platforms&quot;,&quot;wellbores&quot;<br>&gt; ,&quot;pipelines&quot;,&quot;blocks&quot;],&quot;obstructions&quot;:{&quot;featureCount&quot;:1},&quot;platforms&quot;:<br>
&gt; {&quot;featureCount&quot;:3},&quot;wellbores&quot;:<br>&gt; {&quot;featureCount&quot;:15},&quot;pipelines&quot;:{&quot;featureCount&quot;:6},&quot;blocks&quot;:<br>&gt; {&quot;featureCount&quot;:4}}<br>&gt;<br>&gt;<br>
&gt; Mike Adair wrote:<br>&gt;&gt; What response are you getting from Query.php for your maps?<br>&gt;&gt;<br>&gt;&gt; Mike<br>&gt;&gt;<br>&gt;&gt; Jonathan Manafi wrote:<br>&gt;&gt;&gt; We realized about the Selection widgets, and we went ahead and<br>
&gt;&gt;&gt; included those in the ApplicationDefinition.xml files that we<br>&gt;&gt;&gt; used. We also noted that the selection does indeed work with the<br>&gt;&gt;&gt; Sheboygan maps, and as soon as you select parcels, the map<br>
&gt;&gt;&gt; refreshes to indicate your selection, as well as the SelectionInfo<br>&gt;&gt;&gt; widget shows your selected objects. However, we used the included<br>&gt;&gt;&gt; Aqua ApplicationDefinition.xml template and only changed<br>
&gt;&gt;&gt; the .MapDefinition files to reflect our maps instead of Sheboygan<br>&gt;&gt;&gt; and added our custom scripts/urls as widgets to test, and we are<br>&gt;&gt;&gt; having the selection issues. I even removed everything external to<br>
&gt;&gt;&gt; the initial Aqua template except for one of our maps to load, and<br>&gt;&gt;&gt; the same thing occurs.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Also of note:<br>&gt;&gt;&gt; I used the FireBug extension to see the GET and POST commands, and<br>
&gt;&gt;&gt; when running the Sheboygan sample, the selection command issues a<br>&gt;&gt;&gt; POST of .../fusion/MapGuide/php/Query.php followed by POST .../<br>&gt;&gt;&gt; fusion/MapGuide/php/Selection.php, whereas our maps only issue<br>
&gt;&gt;&gt; POST of .../fusion/MapGuide/php/Query.php. &nbsp;I don&#39;t know if that<br>&gt;&gt;&gt; has anything to do with the SelectionInfo showing selected objects<br>&gt;&gt;&gt; for Sheboygan and not for us, or if all of these issues are just<br>
&gt;&gt;&gt; interrelated.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Jonathan<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Mike Adair wrote:<br>&gt;&gt;&gt;&gt; Note that if you are testing with the fusion/samples/mapguide/<br>&gt;&gt;&gt;&gt; standard example, the SelectionPanel and SelectionInfo widgets<br>
&gt;&gt;&gt;&gt; aren&#39;t enabled in the ApplicationDefinition.xml file as shipped.<br>&gt;&gt;&gt;&gt; You have to uncomment those widgets in the file. &nbsp;We should<br>&gt;&gt;&gt;&gt; probably change that so those widgets are included by default.<br>
&gt;&gt;&gt;&gt; In RC4 with the Sheboygan map, the selection should be appearing<br>&gt;&gt;&gt;&gt; highlighted as soon as it is selected.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Mike<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Jason Birch wrote:<br>&gt;&gt;&gt;&gt;&gt; Oh, looking at your contribution to that thread, it looks like<br>&gt;&gt;&gt;&gt;&gt; that problem is Fusion-specific, which is different than ary&#39;s<br>
&gt;&gt;&gt;&gt;&gt; problem (which is PostGIS-specific).<br>&gt;&gt;&gt;&gt;&gt; I&#39;m seeing this Fusion selection problem myself on Windows2k3,<br>&gt;&gt;&gt;&gt;&gt; IIS installation.<br>&gt;&gt;&gt;&gt;&gt; Jason<br>
&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; ________________________________<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; From: <a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a> on behalf of Jason<br>
&gt;&gt;&gt;&gt;&gt; Birch<br>&gt;&gt;&gt;&gt;&gt; Sent: Thu 2008-02-21 8:32 AM<br>&gt;&gt;&gt;&gt;&gt; To: MapGuide Users Mail List<br>&gt;&gt;&gt;&gt;&gt; Subject: RE: [mapguide-users] MG 2.0 RC4 selection ALMOST working<br>
&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Is that just for PostGIS, or is it happening for other feature<br>&gt;&gt;&gt;&gt;&gt; providers too?<br>&gt;&gt;&gt;&gt;&gt; Currently Tom has moved that RC4 be tagged as release, so if<br>
&gt;&gt;&gt;&gt;&gt; this is something that is not specific to the PostGIS provider<br>&gt;&gt;&gt;&gt;&gt; and it is critical, you should make sure to create a ticket in<br>&gt;&gt;&gt;&gt;&gt; Trac with enough information (data, MGP package, operating<br>
&gt;&gt;&gt;&gt;&gt; system, web server, which viewer you&#39;re using) to replicate the<br>&gt;&gt;&gt;&gt;&gt; problem.<br>&gt;&gt;&gt;&gt;&gt; If it is PostGIS-specific, then it likely won&#39;t be fixed in<br>&gt;&gt;&gt;&gt;&gt; MapGuide. &nbsp;Bruno Scott is doing a bunch of work on the PostGIS<br>
&gt;&gt;&gt;&gt;&gt; provider currently, so hopfully it will be fixed through his<br>&gt;&gt;&gt;&gt;&gt; efforts.<br>&gt;&gt;&gt;&gt;&gt; Jason<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; ________________________________<br>
&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; From: J Manafi<br>&gt;&gt;&gt;&gt;&gt; Subject: [mapguide-users] MG 2.0 RC4 selection ALMOST working<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; I was previously having issues with selection (<a href="http://www.nabble.com/Postgis-Selection-Problem-%28additional%29-tt15466067s16610.html" target="_blank">http://www.nabble.com/Postgis-Selection-Problem-%28additional%29-tt15466067s16610.html</a><br>
&gt;&gt;&gt;&gt;&gt; ) where it looked like my objects were selected, but nothing<br>&gt;&gt;&gt;&gt;&gt; actually was, and RC4 has made great strides to remedy this.<br>&gt;&gt;&gt;&gt;&gt; However, my current situation is this:<br>
&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; I can use the selection tool to make selections on the map. But,<br>&gt;&gt;&gt;&gt;&gt; they don&#39;t show up unless I click the &#39;Refresh Map&#39; button. And<br>&gt;&gt;&gt;&gt;&gt; even then, the statusbar still shows No features selected. But<br>
&gt;&gt;&gt;&gt;&gt; when I run our script, the output is correct and formatted<br>&gt;&gt;&gt;&gt;&gt; accordingly. Yet, If I make a selection programmatically like<br>&gt;&gt;&gt;&gt;&gt; stated in the linked post, the selection is highlighted, and the<br>
&gt;&gt;&gt;&gt;&gt; statusbar reads {0} features selected on {1} layers, yet shows<br>&gt;&gt;&gt;&gt;&gt; that two layers are selected in the selection panel, wells and<br>&gt;&gt;&gt;&gt;&gt; blocks. And, no matter which block I select--even if the block<br>
&gt;&gt;&gt;&gt;&gt; has nothing inside--the selection panel always shows the same<br>&gt;&gt;&gt;&gt;&gt; two wells selected. Also, if I make a selection with the tool, I<br>&gt;&gt;&gt;&gt;&gt; cannot use the &#39;Clear Selection&#39; tool, but it is available when<br>
&gt;&gt;&gt;&gt;&gt; objects are selected programmatically.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; I don&#39;t know what is causing this behavior, but these are my<br>&gt;&gt;&gt;&gt;&gt; observations so far. If I come across anything new, I will<br>
&gt;&gt;&gt;&gt;&gt; update here. At least the selections are working enough to use<br>&gt;&gt;&gt;&gt;&gt; and test our scripts, and for that, I am glad.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt;&gt;&gt; mapguide-users mailing list<br>&gt;&gt;&gt;&gt;&gt; <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; mapguide-users mailing list<br>&gt;&gt;&gt;&gt; <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>&gt;&gt;&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; mapguide-users mailing list<br>&gt;&gt;&gt; <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>&gt;&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
&gt;&gt;&gt;<br>&gt; _______________________________________________<br>&gt; mapguide-users mailing list<br>&gt; <a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br>--<br>Paul Spencer<br>CTO, DM Solutions Group Inc<br><a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br><br><br><br><br>_______________________________________________<br>mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</blockquote></div><br>