Invoke URL question...

Cory Gregor cgregor at barkerlemar.com
Mon Oct 9 12:08:57 EDT 2006


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.





More information about the Mapguide_users mailing list