有什么方法可以创建该查询吗?
我需要来自地址和联系地址的数据,通常我可以将它们组合起来Combine OR
但在本例中则不然。
我想我必须编写新插件PreExecute()
方法,获取我的查询,解析数据,然后手动获取相等的地址或者还有其他方法吗?
我不知道有什么方法可以做到上述。
但我不会写一个插件,而是会做一份报告。
我能想到的最简单的方法是在没有过滤器的情况下执行 fetchXML 。
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="account">
<attribute name="name" />
<attribute name="primarycontactid" />
<attribute name="telephone1" />
<attribute name="accountid" />
<attribute name="address1_city" />
<order attribute="name" descending="false" />
<link-entity name="contact" from="parentcustomerid" to="accountid" alias="ac">
<attribute name="address1_city" />
</link-entity>
</entity>
</fetch>
然后使用以下命令切换报告中行的可见性
=Fields!address1_city.Value="Sydney" Or Fields!ac_address1_city.Value="Sydney"
显然你可以用参数替换 Sydney
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)