URL activated for feature

3 messages Options
Embed this post
Permalink
oamram

URL activated for feature

Reply Threaded More More options
Print post
Permalink
Hi All,
I need to create a way to deploy information from selected feature using the URL activated for feature.
i have trouble building the expression. can anyone point me to an example of an actual expression that do that.

Thanks, Omer.
Kenneth Skovhede, GEOGRAF A/S

Re: URL activated for feature

Reply Threaded More More options
Print post
Permalink
Most datasources should be able to use this as a link:
'http://www.example.com?id=' + "idcolumn" + '&x=' + "xcolumn"

All datasources should be able to use concat:
concat(concat(concat('http://www.example.com?id=', "idcolumn"), '&x='),
"xcolumn")

If your data has a column named 'idcolumn' and 'xcolum', these will now
be in the url.
So if you click a feature where idcolumn=4 and xcolumn=abc then the url
will be:
http://www.example.com?id=4&x=abc

Regards, Kenneth Skovhede, GEOGRAF A/S



oamram skrev:
> Hi All,
> I need to create a way to deploy information from selected feature using the
> URL activated for feature.
> i have trouble building the expression. can anyone point me to an example of
> an actual expression that do that.
>
> Thanks, Omer.
>  
_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
thundercat

Re: URL activated for feature

Reply Threaded More More options
Print post
Permalink
Hi,
 i try the examples both on the fusion and  and normal layout. However, it works only  with the fusion but nothing happens when i control +click  using the normal one. any ideas?.

Kenneth Skovhede, GEOGRAF A/S wrote:
Most datasources should be able to use this as a link:
'http://www.example.com?id=' + "idcolumn" + '&x=' + "xcolumn"

All datasources should be able to use concat:
concat(concat(concat('http://www.example.com?id=', "idcolumn"), '&x='),
"xcolumn")

If your data has a column named 'idcolumn' and 'xcolum', these will now
be in the url.
So if you click a feature where idcolumn=4 and xcolumn=abc then the url
will be:
http://www.example.com?id=4&x=abc

Regards, Kenneth Skovhede, GEOGRAF A/S



oamram skrev:
> Hi All,
> I need to create a way to deploy information from selected feature using the
> URL activated for feature.
> i have trouble building the expression. can anyone point me to an example of
> an actual expression that do that.
>
> Thanks, Omer.
>  
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users