Hi, Sorry to post AIMS question here.
Actually I downloaded a demo project MgViewerExtension from link <http://adndevblog.typepad.com/infrastructure/2012/09/intelligent-landing-page-for-aimsmapguide-ajax-viewer-1.html> and try it on the "Sheboygan" sample in Autodesck Infrastructure Server Web Extension. It works kinda fine with the url "http://localhost/MgViewerExtension/default.aspx?Layer=Districts&LayerFilter=Autogenerated_SDF_ID =9". Sometimes it gives me an error like beblow. "Problem: The application encountered a problem and could not finish the operation you just requested properly. Solution: If it\'s the first time you met this problem, try again or restart the application / session; otherwise, describe the steps to reproduce this problem to the server administrator for suggestions. After I refresh the browser, it's works again. It's like sometimes it works sometimes not. And then I created my own map and weblayout, The Map has one layer which is using the Oracle as the datasource store graphic and non-graphic data. After change the weblayout and map definition in the code from string webLayout = @"Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout"; tring mapDef = @"Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition"; to string webLayout = @"Library://RealSuite/Layouts/MapLayout.WebLayout"; string mapDef = @"Library://RealSuite/Maps/RealSuiteMap.MapDefinition"; When I run the url http://localhost/MgViewerExtension/default.aspx without any filter, it works fine. But when I run the url with layer and filter as http://localhost/MgViewerExtension/default.aspx?Layer=SpatialLayer&LayerFilter=BUILDING_ID = 'TDB0103' It gives me an error The map definition is invalid. Do you have any idea what's happening here? All the code is the same except the two lines I mentioned above. I am totally a newbie in the mapguide development. If you can give some help, that would be perfect and I appreciate it. Attached are the screenshots Thank you very much. Weslley Wang <http://osgeo-org.1560.x6.nabble.com/file/n5078335/Working_without_filter.jpg> <http://osgeo-org.1560.x6.nabble.com/file/n5078335/Not_working_with_layer_filter.jpg> <http://osgeo-org.1560.x6.nabble.com/file/n5078335/Map_20130912.png> <http://osgeo-org.1560.x6.nabble.com/file/n5078335/No_Issue_with_Sheboycan_demo.jpg> <http://osgeo-org.1560.x6.nabble.com/file/n5078335/Issue_with_Sheboycan_demo.jpg> -- View this message in context: http://osgeo-org.1560.x6.nabble.com/AIMS-2013-Oracle-spatial-does-not-work-tp5078335.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
