代码之家  ›  专栏  ›  技术社区  ›  Rohith

SSRS报告-显示1对多关系

  •  0
  • Rohith  · 技术社区  · 7 年前

    <?xml version="1.0" encoding="UTF-8"?>
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
       <entity name="entity1">
          <attribute name="name"/>
          <link-entity name="entity2" from="entity2id" to="entity1id">
             <attribute name="name"/>
          </link-entity>
       </entity>
    </fetch>
    
    1 回复  |  直到 7 年前
        1
  •  1
  •   Arun Vinoth PrecogTechnologies    7 年前

    alias & link-type 查询语法中缺少。

    <link-entity name="entity2" from="entity2id" to="entity1id" alias="xyz" link-type="inner" >
    

    另一方面,我建议您使用 Xrmtoolbox FetchXML builder