[mapguide-users] Selection in Fusion
I'm using MGOS 2.02 and IIS 7 on Vista x64. I'm having problems setting the selection in fusion. I step through the code and get this error in fusion.js at ajaxException: SetSelection Exception: An unclassified exception occurred. Exception occurred in method MgSelectionBase_FromXml at line 12308 in file .\MgApi_wrap.cpp Everything seems to be in order, i just can't seem to figure out what is causing it to break. My selection xml is as follows: http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"> AQ== Is anyone else having this problem with setting the selection? PLEASE HELP Thanks. -Mark Pendergraft ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Fusion and .NET Development
The equivalent functions in Fusion can all be found in MapGuideViewerApi.js and MapGuide.js files in the ..\fusion\mapguide\ folder. Open those two files and you will see all the functions. I believe the two you are looking for are: getSessionID(); getMapName(); you could access them through window.top.Fusion.getWidgetById('Map').getSessionID(); or you could add a reference to MapGuide.js in your index.html file and then just call getSessionID(); note: if you are using IE, I had some problems adding a reference to those 2 files due to there being a comma after the curly brace of the last item in a list. I can point you to a post about this if need be. -Mark Pendergraft -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC Sent: Tuesday, December 23, 2008 8:10 AM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Fusion and .NET Development Brian, thanks but I'm not sure you understood what I meant. I need to get the session ID, etc that has already been established by Fusion, at the client side. With the AJAX viewer, using InvokeURL my aspx page is called and the JavaScript loads and calls the GetSessionId() and GetMapName() methods of the MapFrame object to get the values client side. I need the equivalent from Fusion but it doesn't seem to be readily accessible. Once I have got those parameters client side, I'm fine. Regards, Keith Berdel, Brian wrote: > > Something like this will work > > public string GetParameter(NameValueCollection parameters, string name) > { > string strval = parameters(name); > if (strval == null) { > return ""; > } > return strval.Trim(); > } > > { > string mgSessionId = null; > NameValueCollection parameters = default(NameValueCollection); > > if (System.Web.HttpContext.Current.Request.HttpMethod == "POST") { > parameters = System.Web.HttpContext.Current.Request.Form; > } > else { > parameters = System.Web.HttpContext.Current.Request.QueryString; > > } > > string mapName = GetParameter(parameters, "MAPNAME"); > string session = GetParameter(parameters, "SESSION"); > } > > Brian > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC > Sent: Tuesday, December 23, 2008 9:20 AM > To: mapguide-users@lists.osgeo.org > Subject: RE: [mapguide-users] Fusion and .NET Development > > > Thanks Brian. > > How do I get the session ID, etc from Fusion? I need to pass these to > the > backend. > > Regards, > > Keith > > > > Berdel, Brian wrote: >> >> If you were successful with the regular Ajax viewer you can hook to > the >> task pane of fusion using the intitial url or use an invoke url script >> to access the .net pages via a new window or the task pane. The > mapguide >> webapi is still accessible in fusion. >> >> Brian >> >> -Original Message- >> From: mapguide-users-boun...@lists.osgeo.org >> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC >> Sent: Tuesday, December 23, 2008 8:23 AM >> To: mapguide-users@lists.osgeo.org >> Subject: [mapguide-users] Fusion and .NET Development >> >> >> What is the easiest way to hook .NET based App development into > Fusion? >> I >> have an application that uses the web API in C# and I'd like to make >> this >> available in a flexible layout. I don't wish to rewrite the App in > PHP. >> I do >> need to extract some parameters from the client side to send to the >> server, >> such as session ID, map name and web agent url, but it's not clear how >> to do >> this. >> >> Keith >> -- >> View this message in context: >> > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html >> Sent from the MapGuide Users mailing list archive at Nabble.com. >> >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693910.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1694289.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___
RE: [mapguide-users] Fusion and .NET Development
Ok, you can do this as well. There may be fusion functions for getting these client-side, but I am not sure what they are...One way to do it is to reference the Mapguide.js file in your fusion template Then you can access the Mapguide web api functions such as getSessionID() I created a javascript function to return the sessionID in the Fusion template: function test() { theMap = Fusion.getWidgetById('Map'); var myparams = theMap.getSessionID(); alert(myparams); } -- Then you can access this function from your task page with the following functions function GetParent() { if (parent.Fusion) { return parent; } else if (parent.parent.Fusion) { return parent.parent; } return null; } function GetMySessionID() { var myparams = GetParent().test(); alert(myparams); } Brian -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC Sent: Tuesday, December 23, 2008 11:10 AM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Fusion and .NET Development Brian, thanks but I'm not sure you understood what I meant. I need to get the session ID, etc that has already been established by Fusion, at the client side. With the AJAX viewer, using InvokeURL my aspx page is called and the JavaScript loads and calls the GetSessionId() and GetMapName() methods of the MapFrame object to get the values client side. I need the equivalent from Fusion but it doesn't seem to be readily accessible. Once I have got those parameters client side, I'm fine. Regards, Keith Berdel, Brian wrote: > > Something like this will work > > public string GetParameter(NameValueCollection parameters, string name) > { > string strval = parameters(name); > if (strval == null) { > return ""; > } > return strval.Trim(); > } > > { > string mgSessionId = null; > NameValueCollection parameters = default(NameValueCollection); > > if (System.Web.HttpContext.Current.Request.HttpMethod == "POST") { > parameters = System.Web.HttpContext.Current.Request.Form; > } > else { > parameters = System.Web.HttpContext.Current.Request.QueryString; > > } > > string mapName = GetParameter(parameters, "MAPNAME"); > string session = GetParameter(parameters, "SESSION"); > } > > Brian > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC > Sent: Tuesday, December 23, 2008 9:20 AM > To: mapguide-users@lists.osgeo.org > Subject: RE: [mapguide-users] Fusion and .NET Development > > > Thanks Brian. > > How do I get the session ID, etc from Fusion? I need to pass these to > the > backend. > > Regards, > > Keith > > > > Berdel, Brian wrote: >> >> If you were successful with the regular Ajax viewer you can hook to > the >> task pane of fusion using the intitial url or use an invoke url script >> to access the .net pages via a new window or the task pane. The > mapguide >> webapi is still accessible in fusion. >> >> Brian >> >> -Original Message- >> From: mapguide-users-boun...@lists.osgeo.org >> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC >> Sent: Tuesday, December 23, 2008 8:23 AM >> To: mapguide-users@lists.osgeo.org >> Subject: [mapguide-users] Fusion and .NET Development >> >> >> What is the easiest way to hook .NET based App development into > Fusion? >> I >> have an application that uses the web API in C# and I'd like to make >> this >> available in a flexible layout. I don't wish to rewrite the App in > PHP. >> I do >> need to extract some parameters from the client side to send to the >> server, >> such as session ID, map name and web agent url, but it's not clear how >> to do >> this. >> >> Keith >> -- >> View this message in context: >> > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html >> Sent from the MapGuide Users mailing list archive at Nabble.com. >> >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693910.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/
RE: [mapguide-users] Fusion and .NET Development
Brian, thanks but I'm not sure you understood what I meant. I need to get the session ID, etc that has already been established by Fusion, at the client side. With the AJAX viewer, using InvokeURL my aspx page is called and the JavaScript loads and calls the GetSessionId() and GetMapName() methods of the MapFrame object to get the values client side. I need the equivalent from Fusion but it doesn't seem to be readily accessible. Once I have got those parameters client side, I'm fine. Regards, Keith Berdel, Brian wrote: > > Something like this will work > > public string GetParameter(NameValueCollection parameters, string name) > { > string strval = parameters(name); > if (strval == null) { > return ""; > } > return strval.Trim(); > } > > { > string mgSessionId = null; > NameValueCollection parameters = default(NameValueCollection); > > if (System.Web.HttpContext.Current.Request.HttpMethod == "POST") { > parameters = System.Web.HttpContext.Current.Request.Form; > } > else { > parameters = System.Web.HttpContext.Current.Request.QueryString; > > } > > string mapName = GetParameter(parameters, "MAPNAME"); > string session = GetParameter(parameters, "SESSION"); > } > > Brian > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC > Sent: Tuesday, December 23, 2008 9:20 AM > To: mapguide-users@lists.osgeo.org > Subject: RE: [mapguide-users] Fusion and .NET Development > > > Thanks Brian. > > How do I get the session ID, etc from Fusion? I need to pass these to > the > backend. > > Regards, > > Keith > > > > Berdel, Brian wrote: >> >> If you were successful with the regular Ajax viewer you can hook to > the >> task pane of fusion using the intitial url or use an invoke url script >> to access the .net pages via a new window or the task pane. The > mapguide >> webapi is still accessible in fusion. >> >> Brian >> >> -Original Message- >> From: mapguide-users-boun...@lists.osgeo.org >> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC >> Sent: Tuesday, December 23, 2008 8:23 AM >> To: mapguide-users@lists.osgeo.org >> Subject: [mapguide-users] Fusion and .NET Development >> >> >> What is the easiest way to hook .NET based App development into > Fusion? >> I >> have an application that uses the web API in C# and I'd like to make >> this >> available in a flexible layout. I don't wish to rewrite the App in > PHP. >> I do >> need to extract some parameters from the client side to send to the >> server, >> such as session ID, map name and web agent url, but it's not clear how >> to do >> this. >> >> Keith >> -- >> View this message in context: >> > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html >> Sent from the MapGuide Users mailing list archive at Nabble.com. >> >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> ___ >> mapguide-users mailing list >> mapguide-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693910.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1694289.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Fusion and .NET Development
Something like this will work public string GetParameter(NameValueCollection parameters, string name) { string strval = parameters(name); if (strval == null) { return ""; } return strval.Trim(); } { string mgSessionId = null; NameValueCollection parameters = default(NameValueCollection); if (System.Web.HttpContext.Current.Request.HttpMethod == "POST") { parameters = System.Web.HttpContext.Current.Request.Form; } else { parameters = System.Web.HttpContext.Current.Request.QueryString; } string mapName = GetParameter(parameters, "MAPNAME"); string session = GetParameter(parameters, "SESSION"); } Brian -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC Sent: Tuesday, December 23, 2008 9:20 AM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Fusion and .NET Development Thanks Brian. How do I get the session ID, etc from Fusion? I need to pass these to the backend. Regards, Keith Berdel, Brian wrote: > > If you were successful with the regular Ajax viewer you can hook to the > task pane of fusion using the intitial url or use an invoke url script > to access the .net pages via a new window or the task pane. The mapguide > webapi is still accessible in fusion. > > Brian > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC > Sent: Tuesday, December 23, 2008 8:23 AM > To: mapguide-users@lists.osgeo.org > Subject: [mapguide-users] Fusion and .NET Development > > > What is the easiest way to hook .NET based App development into Fusion? > I > have an application that uses the web API in C# and I'd like to make > this > available in a flexible layout. I don't wish to rewrite the App in PHP. > I do > need to extract some parameters from the client side to send to the > server, > such as session ID, map name and web agent url, but it's not clear how > to do > this. > > Keith > -- > View this message in context: > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693910.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] session problem
hello to the members, I have installed mapguide opensource in a xp system and it worked well in that local host. i have altered the ajaxtiledviewersample.php with my own data and it did well and also able to access the sample through another xp system on the same lan. i tried to install the same in another lan system (xp) with dual ip configured. while installation the antivirus software given an warning that mapguide listens for incoming connection requests and checked ok. when i tried to install the sample application and data it worked well. but the problem started when i invoked maestro. it showed the login page and on giving ok it has given the error session expired error 559. and in case of login page it showed connection problem Then, i uninstalled and reinstalled the same but this time antivirus didn't give any warning message. as it still doesn't worked i have uninstalled the application in the first system and tried reinstalling in the second. but no use .. few doubts i have is: whether it maintains any cache... whether it is maintains any registry entries on uninstalling the mapguideopensource2.0 folder is not deleted any issue with this any help in this will be greatly helpful with regards, Sasikumar Deena ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Fusion and .NET Development
Thanks Brian. How do I get the session ID, etc from Fusion? I need to pass these to the backend. Regards, Keith Berdel, Brian wrote: > > If you were successful with the regular Ajax viewer you can hook to the > task pane of fusion using the intitial url or use an invoke url script > to access the .net pages via a new window or the task pane. The mapguide > webapi is still accessible in fusion. > > Brian > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC > Sent: Tuesday, December 23, 2008 8:23 AM > To: mapguide-users@lists.osgeo.org > Subject: [mapguide-users] Fusion and .NET Development > > > What is the easiest way to hook .NET based App development into Fusion? > I > have an application that uses the web API in C# and I'd like to make > this > available in a flexible layout. I don't wish to rewrite the App in PHP. > I do > need to extract some parameters from the client side to send to the > server, > such as session ID, map name and web agent url, but it's not clear how > to do > this. > > Keith > -- > View this message in context: > http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693910.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] mapguide + apache2 + php + win2k8
Hi, i just installed mapguide in a 2k8 server with apache2 and php option. But, i'm having troubles generating php sessions. i know this might be a php issue or a apache2 issue but i don't know if this is a bug. php generates the session files in temp folder but no data is writting there. I enable writing to all users to that folder, but i'm still not able to generate php sessions. if someone know what can i do i'd really apreciate that help.Sorry if this thread shouldn't be here. Thanks and regards. -- View this message in context: http://www.nabble.com/mapguide-%2B-apache2-%2B-php-%2B-win2k8-tp21144967p21144967.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Fusion and .NET Development
If you were successful with the regular Ajax viewer you can hook to the task pane of fusion using the intitial url or use an invoke url script to access the .net pages via a new window or the task pane. The mapguide webapi is still accessible in fusion. Brian -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of KeithC Sent: Tuesday, December 23, 2008 8:23 AM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] Fusion and .NET Development What is the easiest way to hook .NET based App development into Fusion? I have an application that uses the web API in C# and I'd like to make this available in a flexible layout. I don't wish to rewrite the App in PHP. I do need to extract some parameters from the client side to send to the server, such as session ID, map name and web agent url, but it's not clear how to do this. Keith -- View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Fusion and .NET Development
What is the easiest way to hook .NET based App development into Fusion? I have an application that uses the web API in C# and I'd like to make this available in a flexible layout. I don't wish to rewrite the App in PHP. I do need to extract some parameters from the client side to send to the server, such as session ID, map name and web agent url, but it's not clear how to do this. Keith -- View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Geocoding in MapGuide
I know mapguide doesn't directly support geocoding.Does anyone know how can Integrate with some geocoding engine(web service) using the API's? Atenciosamente, Dilson Zititi Kitoko Analista GIS ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users