【问题标题】:Dynamics CRM 2011 Creating Custom ReportsDynamics CRM 2011 创建自定义报告
【发布时间】:2012-02-27 14:18:00
【问题描述】:

我正在尝试使用 BIDS 创建一些自定义报告。我的概念证明是使用报价实体。

我使用以下 FetchXML 创建了一个子报告:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="quotedetail">
<attribute name="productid" />
<attribute name="productdescription" />
<attribute name="priceperunit" />
<attribute name="quantity" />
<attribute name="extendedamount" />
<attribute name="quotedetailid" />
<attribute name="isproductoverridden" />
<order attribute="productid" descending="false" />
<link-entity name="quote" from="quoteid" to="quoteid" alias="aa">
<filter type="and">
<condition attribute="quotenumber" operator="eq" value="@quoteid" />
</filter>
</link-entity>
</entity>
</fetch>

这在运行时提供了quoteid 参数时有效。 然后,我使用以下 FetchXML 创建了主报告:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="quote" enableprefiltering="1" prefilterparametername="CRM_FilteredQuote">
<attribute name="name" />
<attribute name="totalamount" />
<attribute name="quoteid" />
<order attribute="name" descending="false" />
</entity>
</fetch>

我收到报价 ID 的提示,当我输入时出现以下错误:

本地报告处理过程中发生错误。 报告处理过程中发生错误。 无法读取数据集 DataSet1 的下一个数据行。 传递给平台的 XML 不是格式正确的 XML。 无效的 XML。

我已经阅读了许多博客和文章,并尝试了很多过滤器和预过滤器的变体,但我无能为力。希望有人能看到我的错误并指出正确的方向。

【问题讨论】:

    标签: xml crm bids microsoft-dynamics


    【解决方案1】:

    在您的子报告中 - 尝试更改此行:

    <condition attribute="quotenumber" operator="eq" value="@quoteid" />
    

    到:

    <condition attribute="quoteid" operator="eq" value="@quoteid" />
    

    它正在寻找报价编号而不是唯一报价标识符作为键值。

    【讨论】:

      猜你喜欢
      • 2011-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多