gpt4 book ai didi

javascript - 动态客户关系管理。子网格中完全自定义的 FetchXml

转载 作者:行者123 更新时间:2023-12-02 14:41:54 25 4
gpt4 key购买 nike

我正在为帐户创建一个子网格,以按多个字段显示所有相关联系人。这是我试图设置的 fetch 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。

关于javascript - 动态客户关系管理。子网格中完全自定义的 FetchXml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36944480/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com