in my case it should work like this: openHyperlink: function(layer, fldName, fldValue) { switch(layer) {
case 'Anfibios_2014_2015_dcnfn': if (fldName == 'link') { var linkUrl = 'http:/' + '/xxx.xxx.xxx.xxx/partilha/' + fldValue + '.pdf'; ; //window.open(linkUrl, 'wikiquery'); this.openHyperlinkDialog(linkUrl); } break; ... // Sample how to open a link in a p.mapper dialog box hyperlinkDlgOptions: {width:600, height:600, resizeable:true, newsize:false, container:'pmDlgContainerHyperlink'}, openHyperlinkDialog: function(linkUrl) { var dlg = PM.Dlg.createDnRDlg(this.hyperlinkDlgOptions, _p('Hyperlink'), false); var h = '<iframe width="99%" height="98%" src="' + linkUrl + '" />'; $('#pmDlgContainerHyperlink_MSG').html(h); }, /*showCategoryInfo: function(catId) { var catName = catId.replace(/licat_/, ''); alert('Info about category: ' + catName); }, showGroupInfo: function(groupId) { var groupName = groupId.replace(/ligrp_/, ''); alert('Info about layer/group: ' + groupName); } */ }); -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-Hyperlink-pdf-tp4025871p4025873.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users