[mapguide-users] How to invoke URL?
Ryan Northcott
rnorthcott at gmail.com
Mon Mar 16 09:39:10 EDT 2009
To repeat the above, the URL activated for Feature option will not work on
Fusion layouts. Use a regular Layout.
You would need to put in a value from your feature data into the URL
activated expression.Build an expression like
concat('/app/DataPullPage.aspx?date=', ToDate ( "AddedDate" ) )
where
app os the virtual directory or application directory on your web-server
and DataPullPage.aspx (or .php) is the page you want data to show in the
task panel.
and AddedDate is a Date field in your feature attribute table of the data
you are displaying.
When you move you mouse over, there should be a yellow tool-tip saying press
Cntrl+Click to open URL for this feature.
If a user does that, the parameter is passed to your page with the value
from your attribute table. You make the page then spit out whatever you need
it to based on what you want your program to do with the feature.
Pulling data out of a selected set is a bit labor intensive, and requires
some good javaScript understanding. But Do-able.
Good Luck
On Mon, Mar 16, 2009 at 4:29 AM, achectl <achectl at gmail.com> wrote:
>
> Thanks.
>
> Really?
>
> What I tried?
> I try to input the date for the key and $CurrentSelection for the value.
> The result is like that:
> http://xx.xxx.xxx.xx/app?date=%24CurrentSelection
>
> What is the meaning - %24CurrentSelection?
>
> Any suggestion will be appreciate.
>
>
>
>
>
> lolob wrote:
> >
> > I think you can't use invoke url in Fusion. I think it is for Ajax only.
> >
> >
> >
> > achectl wrote:
> >>
> >> Dear All,
> >>
> >> I trying the invoke url feature. Fusion viewer is my testing viewer. I
> >> would like to pass the custom parameter to the application by using url.
> >>
> >> I make use of MapGuide Studio 2009. Inside the invoke url command, i
> need
> >> to input Key and Value of additional parameters. What is the key and
> >> value? Key is the attribute of the feature data? Value should be a
> >> $CurrentSelection?
> >>
> >> Any suggestion will be appreciate.
> >>
> >>
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/How-to-invoke-URL--tp2484189p2484665.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090316/0e112858/attachment.html
More information about the mapguide-users
mailing list