Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: CDE Open a PDF file from buton component

  1. #1

    Default CDE Open a PDF file from buton component

    Hi !

    I try to open a PDF file from the buton component. in Javascript part, I put :'MyFile.pdf');

    When it's a file which is on the internet (Google docs) and I put an URL it works, but when I want to open a file which is under pentaho-solutions I don't know how to write the path.
    The file is in the same repository than the dashboard, so I try with "./MyFile.pdf" or "MyFile.pdf" but nothing happen.

    Can anybody tell me which path I have to write ?

    Thanks in advance

  2. #2
    Join Date
    Dec 2009



    check out this link:

    I assume that (for linking from inside the PUC) a link like:



  3. #3
    Join Date
    Jul 2007


    Try to put in the link ${res:MyFile.pdf}
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  4. #4


    Hi ! Thanks for your answers but it doesn't work.

    @TomS : It opens a new window which display the Home page of Pentaho user-console

    @pmalves : I have already try this because it's how I import CSS file in my dashboard but it seems to doesn't work in that case. I have an HTTP 403 error which tell me that the access to the ressource is forbidden.

    Do you have others ideas ?

    PS : Sorry for my english

  5. #5


    Hi !

    I juste find an issue to my problem ! Yes, 1 year after my first post... I have to open a PDF file again and I look for an issue again and I find it !

    My javascript line :
    But when I did that, i had a 403 error. That I forgot is in the file /pentaho-solutions/system/pentaho-cdf-dd/settings.xml, I had to put ".pdf" in the "<downloadable-formats>". And after restarts PUC, it works !

    If it can helps somebody...

    PS : It works for pentaho CE 3.7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.