Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Pentaho Dashboard embedding - getHeaders trouble

  1. #1
    Join Date
    Mar 2017

    Default Pentaho Dashboard embedding - getHeaders trouble

    Hi all,

    That's the first time I'm trying to embed a test dashbord on my php based page. I'm using pentaho 8.0
    I have a problem with getHeaders function:

    PHP Code:
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://myserver:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/getHeaders?userid=user&password=password&solution=public&path=/Cdg/Test&file=test_20180508.wcdf&absolute=true&root=myserver:8080&inferScheme=false");
    curl_setopt($ch, CURLOPT_USERPWD, "user:password");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    echo "<html><head>";?>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript">        
    var contextPath = "http://myserver:8080/pentaho";        
    var FULL_QUALIFIED_URL = 'http://myserver:8080/pentaho/';       
     var webAppPath = 'http://myserver:8080/pentaho';       
     var CONTEXT_PATH = 'http://myserver:8080/pentaho';
    <?php$result = curl_exec($ch);echo $result;
    //and so on...
    The result is:

    HTML Code:
      <script language="javascript" type="text/javascript" src="webcontext.js?context=cdf&amp;requireJsOnly=true"></script>
    1) title is correct so it seems make a correct call, that's correct;
    2) the src parameters has not been modified with "root" getHeaders parameter, that's the problem :-P

    Where I'm wrong?

    Thank you!!!


  2. #2
    Join Date
    Mar 2017


    Hi, no helps?

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.