如何将pentaho报告集成到php网页,发送参数以选择特定数据?
我使用的是symfony框架,我需要根据用户在dropwdown上选择的内容显示一份报告,例如一年的第一季度或第二季度等。Pentaho报告在Tomcat服务器上运行,我需要请求一个由sent参数选择的报告。我查看了一下,没有关于向pentaho报告发送参数的文档如何将pentaho报告集成到php网页,发送参数以选择特定数据?,php,mysql,pentaho,Php,Mysql,Pentaho,我使用的是symfony框架,我需要根据用户在dropwdown上选择的内容显示一份报告,例如一年的第一季度或第二季度等。Pentaho报告在Tomcat服务器上运行,我需要请求一个由sent参数选择的报告。我查看了一下,没有关于向pentaho报告发送参数的文档 How could I do this?....There's 0 documentation about how to use pentaho from a php script.... I've found this to log
How could I do this?....There's 0 documentation about how to use pentaho from a php script....
I've found this to login but deosn't specify anything about sending parameters
<?php
session_start();
require_once "HTTP\Client.php";
$endpointUrl = "http://localhost:8080/pentaho/Home";
$userName="joe";
$password="password";
$manager = new HTTP_Client_CookieManager(true);
$httpc = new HTTP_Client(null, null, $manager);
$httpc->get("$endpointUrl?userid=$userName&password=$password");
$response = $httpc->currentResponse();
//var_dump($response);
$url= "http://localhost:8080/pentaho/Home?userid=joe&password=password";
?>
我该怎么做?…有0个关于如何从php脚本中使用pentaho的文档。。。。
我在登录时发现了这一点,但没有指定任何关于发送参数的内容
Pentaho用户控制台不是从PHP创建的。我认为与Pentaho交互的推荐方法是直接向Mondrian使用XMLA和MDX查询。例如,看看这个答案:
您可以在/XMLA上找到XMLA端点,在您的情况下,它应该是http://localhost:8080/pentaho/Xmla