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