[pmapper-users] Hyperlink for same values to different pages
Hi Armin and All, I would like to know whether it is possible or not to have different link for the same field value. Example: I have a field NAME. I want to create a link for the result from this field. The problem is that I have some cases where the values of NAME are the same. However, I want to point them to different pages. NAMEFIRSTNAME SimonCruze SimonBlake Marc Blake and I want the link to be on the field NAME. Thanks, Serge Re: How to open the hiperlinks in the same dialog box of pmapper?[image: Click to flag this post] by Armin Burger http://old.nabble.com/user/UserProfile.jtp?user=43088 Nov 21, 2011; 12:13am :: Rate this Message: http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html#http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html#http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html#http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html#http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# - Use ratings to moderate (? http://old.nabble.com/help/Answer.jtp?id=16) Reply http://old.nabble.com/forum/Reply.jtp?post=32869429 | Printhttp://old.nabble.com/forum/PrintPost.jtp?post=32869429| View Threaded | Show Only this Messagehttp://old.nabble.com/Re%3A-How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--p32869429.html Salo replace the custom.js with the one from here http://svn.pmapper.net/trac/export/1234/trunk/pmapper/config/default/custom.js and then swap the comments for lines 14/15. If you need some more specific you need to modify the code accordingly. armin On 20/11/2011 17:44, salo wrote: Thanks Serge, But really, I want is to show the following funtion (custom.js) as a pmapper's dialog box, please help me! // Sample Hyperlink function for result window openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'mpios': //if (fldName == 'CITY_NAME') { window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery'); //} break; default: alert ('See function openHyperlink in custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue); } }, --- Salo Sypou wrote: Hi Salo, To do that, you need to check and know how pmapper deals with the dialog box. You can give it a try by adding the same functions and scripts let's say similar to help. - pm.pmapper.jsinjavascript/src- add dialog (line 242) and open dialog (line 360) - js_configinconfig/default- Tool link elements (line 196) - language_eninincphp/locale - depending on the language you use - yourfile.phtml under your main site folder - you can refer to the help.phtml Hope it can help. Serge On Fri, Nov 18, 2011 at 5:45 PM, saloe_ramirez_f@... wrote: Hello everyone, I want to open a hiperlink in same dialog box that pmapper use to open search, help, etc. Please help me! Thanks! Salo. -- View this message in context: http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--tp32865640p32865640.html Sent from the pmapper users mailing list archive at Nabble.com. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ pmapper-users mailing list pmapper-users@... https://lists.sourceforge.net/lists/listinfo/pmapper-users -- Serge -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ pmapper-users mailing list pmapper-users@... https://lists.sourceforge.net/lists/listinfo/pmapper-users ... [show rest of quotehttp://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# ] -- Serge -- Keep yourself connected to Go Parallel:
Re: [pmapper-users] Hyperlink for same values to different pages
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 9openHyperlink: function(layer, fldName, fldValue) { 10switch(layer) { 11case 'pais_siembra_pl': 12if (fldName == 'NOMBRE') { 13var linkUrl = 'http:/' + '/en.wikipedia.org/wiki/' + fldValue; 14 // window.open(linkUrl, 'wikiquery'); 15this.openHyperlinkDialog(linkUrl); 16//} 17break; 18 19default: 20alert ('Vea la funcion en custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue); 21} 22}, Regards 2012/11/30 Serge Claudio Rafanoharana rafanohar...@gmail.com Hi Armin and All, I would like to know whether it is possible or not to have different link for the same field value. Example: I have a field NAME. I want to create a link for the result from this field. The problem is that I have some cases where the values of NAME are the same. However, I want to point them to different pages. NAMEFIRSTNAME SimonCruze SimonBlake Marc Blake and I want the link to be on the field NAME. Thanks, Serge Re: How to open the hiperlinks in the same dialog box of pmapper?[image: Click to flag this post] by Armin Burger http://old.nabble.com/user/UserProfile.jtp?user=43088 Nov 21, 2011; 12:13am :: Rate this Message: http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# - Use ratings to moderate (? http://old.nabble.com/help/Answer.jtp?id=16) Reply http://old.nabble.com/forum/Reply.jtp?post=32869429 | Printhttp://old.nabble.com/forum/PrintPost.jtp?post=32869429| View Threaded | Show Only this Message http://old.nabble.com/Re%3A-How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--p32869429.html Salo replace the custom.js with the one from here http://svn.pmapper.net/trac/export/1234/trunk/pmapper/config/default/custom.js and then swap the comments for lines 14/15. If you need some more specific you need to modify the code accordingly. armin On 20/11/2011 17:44, salo wrote: Thanks Serge, But really, I want is to show the following funtion (custom.js) as a pmapper's dialog box, please help me! // Sample Hyperlink function for result window openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'mpios': //if (fldName == 'CITY_NAME') { window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery'); //} break; default: alert ('See function openHyperlink in custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue); } }, --- Salo Sypou wrote: Hi Salo, To do that, you need to check and know how pmapper deals with the dialog box. You can give it a try by adding the same functions and scripts let's say similar to help. - pm.pmapper.jsinjavascript/src- add dialog (line 242) and open dialog (line 360) - js_configinconfig/default- Tool link elements (line 196) - language_eninincphp/locale - depending on the language you use - yourfile.phtml under your main site folder - you can refer to the help.phtml Hope it can help. Serge On Fri, Nov 18, 2011 at 5:45 PM, saloe_ramirez_f@... wrote: Hello everyone, I want to open a hiperlink in same dialog box that pmapper use to open search, help, etc. Please help me! Thanks! Salo. -- View this message in context: http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--tp32865640p32865640.html Sent from the pmapper users mailing list archive at Nabble.com. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
Re: [pmapper-users] Hyperlink for same values to different pages
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 eduko...@gmail.comwrote: 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 9openHyperlink: function(layer, fldName, fldValue) { 10switch(layer) { 11case 'pais_siembra_pl': 12if (fldName == 'NOMBRE') { 13var linkUrl = 'http:/' + '/en.wikipedia.org/wiki/' + fldValue; 14 // window.open(linkUrl, 'wikiquery'); 15this.openHyperlinkDialog(linkUrl); 16//} 17break; 18 19default: 20alert ('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 pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users