[mapguide-users] RE: Invoke URL question...

Andy Morsell amorsell at spatialgis.com
Mon Oct 9 12:40:00 EDT 2006


Take a look at the sample application on the OSGeo.org web site.  This page
should be along the lines of what you are looking for:
http://data.mapguide.com/mapguide/devguide/working_with_feature_data/ajax.ph
p  Look at the listajaxselection.php page.  


Andy 

-----Original Message-----
From: Cory Gregor [mailto:cgregor at barkerlemar.com] 
Sent: Monday, October 09, 2006 9:09 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] RE: Invoke URL question...


This sounds like what i am tryiing to do.  Can you post some of the code so
i can see how you did this.  I want to click on the map and get the ID, so i
can pass it to another asp page to use the ID as pull data from an SQL
server.

Thanks,
Cory


Andy Morsell wrote:
> 
> This is something I looked at in depth towards the end of last year 
> when trying to replicate the older MapGuide 6.5 report functionality.  
> With the Invoke URL, you can only pass the $CurrentSelection as a URL
parameter.
> The
> $CurrentSelection consists of the selected objects MGOS internally 
> generated feature ID's.  Quite honestly, these feature ID's do not do 
> us much good outside of the MapGuide Open Source environment and the 
> invoke URL feature needs to allow us to pass any of the objects 
> attributes in order to be useful for this kind of thing.  To get 
> around this, I had to write custom code to get the selection set, then 
> use FDO to query the feature data based on those feature ID's, then 
> extract my meaningful key values (parcel tax ID's in this case) and 
> then pass those off to the report page so it could do its processing.  
> All of this was done using the API but invoke URL (without passing any 
> parameters) was used to first kick it off.
> 
> Andy Morsell, P.E. 
> Spatial Integrators, Inc. 
> http://www.SpatialGIS.com
> 
>   _____
> 
> From: Andrew DeMerchant [mailto:andrew.demerchant at gemtec.ca]
> Sent: Wednesday, June 28, 2006 2:22 PM
> To: users at mapguide.osgeo.org
> Subject: [mapguide-users] Invoke URL question...
> 
> 
> Does anyone have any documentation on how to use the Invoke URL 
> command in Studio? All that I want to do is go to a URL and pass some 
> data from the selected point to that URL (it's an ASP page). So, for 
> example, if the user has selected a point that has the name "test" in 
> the field "name", I'd like to be able to lauch a URL like 
> "http://server/page.asp?Name=Test"
> <http://server/page.asp?Name=Test> ...I know that this can be done by 
> using the layer properties ("URL Activated for Feauture"), as I've 
> already got that working. I just don't want the user to have to hold 
> <ctrl> and click to get to the page. I'd rather have a button.
> 
> Andrew
> 
> --
> 
> 
> 
> Andrew DeMerchant
> Computer Technologist
> ph.1-877-4GEMTEC x.163
> fax 506-453-9470
> 
> 
> GEMTEC <http://www.gemtec.ca>  Limited
> 191 Doak Road
> Fredericton, NB, Canada
> E3C 2E6
> 
> 
>  
> 

--
View this message in context:
http://www.nabble.com/Invoke-URL-question...-tf1864187.html#a6720520
Sent from the OSGeo MapGuide mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org







More information about the Mapguide_users mailing list