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
"http:localhost/pmapper/pmapper5/test1.pdf"

Here is the java code in custom

$.extend(PM.Custom,
{
    // Sample Hyperlink function for result window
    openHyperlink: function(layer, fldName, fldValue) {
        switch(layer) {
            case 'Jobfunds':
                //if (fldName == 'Project_na') {
                    var linkUrl = 'http:localhost/pmapper/pmapper5/' +
fldValue;
                    window.open(linkUrl, 'wikiquery');
                    //this.openHyperlinkDialog(linkUrl);
                //}
                break;

Thank you


On Sun, Nov 10, 2013 at 7:00 PM, gioza <al...@aliasinfo.it> wrote:

> 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":
> {"alias":
> "Link to PDF"} }'
> ...
>
> 3) modify your custom.js in this way:
>
> // Sample Hyperlink function for result window
>
>    openHyperlink: function(layer, fldName, fldValue) {
>
>   switch(layer) {
>
>       case 'POINT LAYER NAME AS DECLARE IN MAPFILE':
>
>        //if (fldName == 'NAME OF PDF FIELD') {
>
>
>       var linkUrl = 'http://www.yoursite.com/PATH WHERE YOUR PDFs ARE
> LOCATED/' + fldValue;
>
>            window.open(linkUrl, 'wikiquery');
>
>                //this.openHyperlinkDialog(linkUrl);
>                 //}
>
>         break;
>
>
>
>
>
> --
> 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-tp4025401p4025402.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list
> archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models.
> Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and
> register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>



-- 
Best Regards

Solly Vuso
Cell:073 3068 170
Fax:086 555 1270

I may not know what tomorrow holds for me but I do know who holds ma
tomorrow.....
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to