简体   繁体   English

Bi Publisher-具有2种不同数据源的报表

[英]Bi Publisher - Report with 2 different Datasources

I have a Report that base on two different Datasoeurces. 我有一个基于两个不同Datasoeurces的报告。 The Once is a sql-query with a parameter (in the WHERE clause) and the second is a XML-Data... Both (Parameter and XML-Data) I send over a httpRequest to the BI-Publisher. 一次是带有参数的sql查询(在WHERE子句中),第二个是XML数据...我(通过参数和XML数据)都通过httpRequest发送到BI-Publisher。 (I use the BI Webservice and use for the XML-Data the setReportData(byte[]) Method) and for the Parameter the setParameterNameValues(...) )... Now the problem is that the Publisher only use one of both. (我使用BI Web服务,对于XML数据使用setReportData(byte [])方法,对于参数使用setParameterNameValues(...))...现在的问题是,发布者仅使用了两者之一。 And only in my report are the values of the sql-query or the values of the XML-Data... So there is any solution to get all Vualues of both Datasources in my Report? 而且仅在我的报表中是sql-query的值或XML-Data的值...因此,有什么解决方案可以在我的报表中获取两个数据源的所有Vualue?

PLEASE can you help me? 请你能帮我吗? THANKS THANKS THANKS 谢谢谢谢

You could append the output of the SQL-query as XML, into the XML-file that you already have. 您可以将SQL查询的输出作为XML附加到已经拥有的XML文件中。 Ensure that the structure of the output is in sync with the existing XML structure. 确保输出的结构与现有XML结构同步。

And then, create a single report definition with data-source specified as XML-Data and run you report. 然后,使用指定为XML-Data的数据源创建单个报表定义,并运行报表。 This way - You will have both the data from the SQL-Query and the XML-data that you already have. 这样-您将同时拥有来自SQL查询和XML数据的数据。

you can build a data template for your report. 您可以为报告构建数据模板。 In the data template, you can specify as many different data source as you want. 在数据模板中,您可以根据需要指定尽可能多的不同数据源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM