![](/img/trans.png)
[英]Activity records in Dynamics CRM 2015 returned in subgrid by FetchXML query - Subject hyperlink opens new Activity
[英]Dynamics CRM. Fully custom FetchXml in subgrid
我正在為一個子網格提供按多個字段顯示所有相關聯系人的信息。 這是我嘗試設置的xml:
<fetch mapping="logical">
<entity name="contact">
<attribute name="firstname" />
<filter type="or">
<condition attribute="new_behorde" operator="eq" value="" />
<condition attribute="new_behorde2" operator="eq" value="" />
<condition attribute="new_behorde3" operator="eq" value="" />
</filter>
</entity>
我使用document.getElementById(“ contacts”)。control.SetParameter方法進行設置。 但是,如果我嘗試運行document.getElementById(“ contacts”)。control.refresh(),則有效的xml提取將變為:
<fetch mapping="logical">
<entity name="contact">
<attribute name="firstname" />
<filter type="and">
<condition attribute="new_behorde" operator="eq" value="" />
<filter type="or">
<condition attribute="new_behorde" operator="eq" value="" />
<condition attribute="new_behorde2" operator="eq" value="" />
<condition attribute="new_behorde3" operator="eq" value="" />
</filter>
</filter>
</entity>
發生這種情況是因為我在子網格中選擇了new_behorde作為相關字段。
那么我能以某種方式避免添加此額外的過濾器和額外的條件嗎?
在表單編輯器中設置子網格時,選擇要返回所有記錄,而不僅僅是返回與此實體相關的記錄。 然后,CRM將不理會您的FetchXml。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.