Reporting services 连接两个xml';用于ssrs查询报告的s(4个数据集)?
我有两个XML: 一是,Reporting services 连接两个xml';用于ssrs查询报告的s(4个数据集)?,reporting-services,ssrs-2008,dynamics-crm,ssrs-2012,Reporting Services,Ssrs 2008,Dynamics Crm,Ssrs 2012,我有两个XML: 一是, <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="invoice"> <attribute name="name" /> <attribute name="customerid" /> <attribute name="totalamount" /> <at
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="invoice">
<attribute name="name" />
<attribute name="customerid" />
<attribute name="totalamount" />
<attribute name="invoiceid" />
<attribute name="new_customerno" />
<order attribute="name" descending="false" />
<link-entity name="invoicedetail" from="invoiceid" to="invoiceid" link-type="inner">
<attribute name="new_styleno" />
<attribute name="new_locationcode" />
<attribute name="invoiceid"/>
<attribute name="new_finalcmt" />
</link-entity>
</entity>
</fetch>
二是,
<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="new_creditmemo">
<attribute name="new_creditmemoid"/>
<attribute name="new_name"/>
<attribute name="new_customerno"/>
<attribute name="new_customername"/>
<order descending="false" attribute="new_name"/>
<link-entity name="new_creditmemoline" link-type="outer" to="new_creditmemoid" from="new_creditmemoid">
<attribute name="new_name"/>
<attribute name="new_creditmemoid"/>
<attribute name="new_locationcode"/>
<attribute name="new_finalcmt"/>
<order descending="false" attribute="new_name"/>
</link-entity>
</entity>
</fetch>
现在我需要在new\u customerno的基础上合并这两个XML。我试过了,但没用。
有人能帮我吗??
谢谢,FetchXml报告中没有Union语句。要使它发挥作用,你必须寻找替代品。下面是一个可能的解决方案-Union语句在FetchXml报告中不可用。要使它发挥作用,你必须寻找替代品。这里是一个可能的解决方案-我想OP是在两个fetchxml查询之间请求另一个级别的链接实体,而不是union。。如果我没有错的话,我猜OP是在两个fetchxml查询之间请求另一个级别的链接实体,而不是union。。如果我没有错的话,请尝试一下,如果你手头上有sql查询,那么你就可以尝试一下。如果你手头上有sql查询,那么你就可以尝试一下,如果你手头上有sql查询,那么你就可以尝试一下。。