将参数传递给pentaho CDE报告

将参数传递给pentaho CDE报告,pentaho,pentaho-cde,Pentaho,Pentaho Cde,我在此报告中创建了一个CDE参数报告。我希望通过url传递参数我的CDE报告链接,如下所示 http://localhost:8080/pentaho/content/pentaho-cdf-dd/Render?solution=demo&path=&file=pass_parameter.wcdf&userid=joe&password=password 我的cda查询url如下 http://localhost:8080/pentaho/content/cd

我在此报告中创建了一个CDE参数报告。我希望通过url传递参数我的CDE报告链接,如下所示

http://localhost:8080/pentaho/content/pentaho-cdf-dd/Render?solution=demo&path=&file=pass_parameter.wcdf&userid=joe&password=password
我的cda查询url如下

http://localhost:8080/pentaho/content/cda/doQuery?path=demo/pass_parameter.cda&dataAccessId=jdbc&paramdeviceType=deviceType
在上面的cda查询url中,如果我传递deviceType,如下所示

http://localhost:8080/pentaho/content/cda/doQuery?path=demo/pass_parameter.cda&dataAccessId=jdbc&paramdeviceType=Linux
function() 
{ 
  cname = Dashboards.getQueryParameter('name');
 } 
它在浏览器中显示json格式的输出。所以我在我的jsp页面的iframe中使用了CDE报告,并且我传递了第一个url。我想在我的第一个url中传递deviceType参数

 http://localhost:8080/pentaho/content/pentaho-cdf-dd/Render?solution=demo&path=&file=pass_parameter.wcdf&userid=joe&password=password&deviceType=Linux

但它没有显示任何输出,我如何通过url传递参数?

经过长时间的研究,我找到了问题的解决方案。 首先,在我的jndi查询组件查询所需的属性值和我希望通过url传递的属性值中,我选择一个组件参数并编写如下javascript代码

http://localhost:8080/pentaho/content/cda/doQuery?path=demo/pass_parameter.cda&dataAccessId=jdbc&paramdeviceType=Linux
function() 
{ 
  cname = Dashboards.getQueryParameter('name');
 } 
您还可以在预执行下将此脚本添加到组件中,并将参数名称作为cname值添加到cname,我的查询将
从表名中选择*,其中cname=${cname}
。在我的iframeURL中,我传递参数如下

http://localhost:8080/pentaho/content/pentaho-cdf-dd/Render?solution=demo&path=&file=pass_parameter.wcdf&userid=joe&password=password&name=Linux

它向我展示了我想要的结果。

你能给我提供一个如何从一开始就开始的链接吗