Dear Eduardo,
Try to comment the line 12 and do not forget to add the METADATA in your
map file for the specific layer.
e.g.
METADATA
"NAME" "pais_siembra_pl"
"DESCRIPTION" "Pais Siembra Pl"
"RESULT_FIELDS" "... depends on your attribute..."
"RESULT_HEADERS" "...depends on your attribute..."
"RESULT_HYPERLINK" "NOM"
END # METADATA
Hope it will help you.
Cheers,
Serge
On Fri, Nov 30, 2012 at 8:32 PM, Eduardo Bieñkowski <[email protected]>wrote:
> Hi all
>
> I have the same problem in the file custom.js
> Do not open the link even though the syntax is correct
>
> my code is:
>
> $.extend(PM.Custom,
> 7 {
> 8 // Sample Hyperlink function for result window
> 9 openHyperlink: function(layer, fldName, fldValue) {
> 10 switch(layer) {
> 11 case 'pais_siembra_pl':
> 12 if (fldName == 'NOMBRE') {
> 13 var linkUrl = 'http:/' + '/en.wikipedia.org/wiki/'
> + fldValue;
> 14 // window.open(linkUrl, 'wikiquery');
> 15 this.openHyperlinkDialog(linkUrl);
> 16 //}
> 17 break;
> 18
> 19 default:
> 20 alert ('Vea la funcion en custom.js: ' + layer + ' - '
> + fldName + ' - ' + fldValue);
> 21 }
> 22 },
>
>
> Regards
>
>
>
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users