thank you, but it didn't show my pdf, it shows a link like: (about:blank)
i don't why?? :/
--
View this message in context:
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Re-pmapper-users-How-to-Hyperlink-a-pdf-document-on-a-search-results-tp4025401p4025770.html
Sent
Hello,
i didn't understand how to resolve it (pdf hyperlink):
this is my code:
**Mapfile:
METADATA
DESCRIPTION projet_agriculture
RESULT_FIELDS
CAF,MONTANT_DH,DEVISE,INTITULE,CP,FP,FP_HL,ST_YEAR,END_YEAR,ABF,DATE_ABF,ABF_HL,CAUTION_DEF,POP,SURF_HA
RESULT_HEADERS
Hello,
i didn't understand how to resolve it (pdf hyperlink):
this is my code:
**Mapfile:
METADATA
DESCRIPTION projet_agriculture
RESULT_FIELDS
CAF,MONTANT_DH,DEVISE,INTITULE,CP,FP,FP_HL,ST_YEAR,END_YEAR,ABF,DATE_ABF,ABF_HL,CAUTION_DEF,POP,SURF_HA
RESULT_HEADERS
Hi,
In your custom.js case:
openHyperlink: function(layer, fldName, fldValue) {
switch(layer) {
case 'YOUR_LAYER_NAME':
if(fldName == 'FP_HL') {
var linkUrl = 'http:/' +
'/YOUR_HOSTNAME/YOUR_FOLDER/' + fldValue +
Hi
The value of the 'Name' record should be 'test1.pdf' only (=fldValue).
Then:
openHyperlink: function(layer, fldName, fldValue) {
switch(layer) {
case 'Jobfunds':
window.open('http:/' + '/localhost/pmapper/pmapper5/' +
fldValue);
break;
Thank you so much its working now
On Fri, Nov 15, 2013 at 9:59 AM, Chris forum bak.fo...@gmail.com wrote:
Hi
The value of the 'Name' record should be 'test1.pdf' only (=fldValue).
Then:
openHyperlink: function(layer, fldName, fldValue) {
switch(layer) {
case
Thank you very much its working the small problem i have , these pdf are
inside localhost\pmapper\pmapper5\test1.pdf
but when I click on the link in the results window it doesnt fetch the pdf
but it tells me the file is not found
I have created a field name and named it Name and inside records
hi, probably the simplest solution is:
1) in your POINT shapefile add a field and populate it with pdf file's name
(point1 --- pdf name)
2) modify your mapfile in the part concerning the point layer in this way:
...
METADATA
PM_RESULT_HYPERLINK '{ FIELD NAME, THE ONE OF YOUR PDFs NAME:
Hi
Can anyone assist me , I want to hyperlink a pdf documents
I have a shape-file that has 5 records(5 points),I want to attach different
reports per point.
Name
1
2
3
4
5
So that when you click 1 it opens a pdf 1 and when you click 2 it opens
pdf 2
Please help me